3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = NULL; eval('$foo = function (stdClass $a, $b = 1) {};'); } echo $t + microtime(TRUE);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.00.0100.07616.98
7.3.120.0030.04916.59
7.3.110.0070.07916.90
7.3.100.0070.04616.64
7.3.90.0100.03816.61
7.3.80.0100.04916.29
7.3.70.0000.05116.68
7.3.60.0030.06016.72
7.3.50.0030.04616.49
7.3.40.0030.04716.50
7.3.30.0070.04416.60
7.3.20.0030.04418.73
7.3.10.0100.03918.16
7.3.00.0070.04018.63
7.2.250.0100.06017.04
7.2.240.0160.05816.99
7.2.230.0100.05317.39
7.2.220.0000.05817.14
7.2.210.0100.04816.75
7.2.200.0130.04516.99
7.2.190.0030.07017.16
7.2.180.0160.04217.17
7.2.170.0100.04717.21
7.2.00.0070.03521.31
7.1.330.0000.05817.54
7.1.320.0070.04717.69
7.1.310.0070.04517.93
7.1.300.0030.04717.66
7.1.290.0070.05717.73
7.1.280.0030.05317.77
7.1.270.0030.05017.76
7.1.260.0000.05717.78
7.1.70.0030.02919.16
7.1.60.0160.06219.70
7.1.50.0070.03418.86
7.1.00.0000.14024.34
7.0.200.0030.02718.82
7.0.140.0000.12723.98
7.0.60.0100.11321.75
7.0.50.0030.06719.85
7.0.40.0130.11319.96
7.0.30.0300.10320.09
7.0.20.0370.09720.24
7.0.10.0270.10320.23
7.0.00.0130.11320.35
5.6.280.0030.14325.04
5.6.210.0030.10024.78
5.6.200.0030.07322.35
5.6.190.0070.07324.50
5.6.180.0330.08024.30
5.6.170.0200.07324.44
5.6.160.0230.11024.52
5.6.150.0130.06722.23
5.6.140.0070.07022.34
5.6.130.0030.11722.29
5.6.120.0130.13025.27
5.6.110.0030.08025.24
5.6.100.0130.10325.13
5.6.90.0130.09024.99
5.6.80.0130.12024.63
5.6.70.4300.07024.63
5.5.350.0200.12724.64
5.5.340.0200.06022.01
5.5.330.0000.08024.34
5.5.320.0270.12324.23
5.5.310.0330.12724.22
5.5.300.0000.09022.07
5.5.290.0100.10722.10
5.5.280.0070.13024.88
5.5.270.0070.13324.77
5.5.260.0070.12024.91
5.5.250.0200.10324.67
5.5.240.0170.11024.39
5.4.450.0270.06722.44
5.4.440.0270.07722.44
5.4.430.0230.10322.66
5.4.420.0370.09322.57
5.4.410.0230.07022.78
5.4.400.0370.08722.52
5.4.390.0230.07022.62
5.4.380.0300.08022.58
5.4.370.0430.10022.39
5.4.360.0330.09322.36
5.4.350.0300.09022.21
5.4.340.0300.07022.35
5.4.320.0200.07022.36
5.4.310.0170.07322.36
5.4.300.0230.07022.51
5.4.290.0330.09022.39
5.4.280.0400.10722.15
5.4.270.0270.06022.26
5.4.260.0200.06722.59
5.4.250.0230.07022.35
5.4.240.0230.06722.35
5.4.230.0330.10722.34
5.4.220.0200.07322.32
5.4.210.0400.10722.35
5.4.200.0270.06722.58
5.4.190.0230.08022.39
5.4.180.0270.06722.35
5.4.170.0300.06722.50
5.4.160.0300.06022.47
5.4.150.0270.10022.33
5.4.140.0230.07319.70
5.4.130.0270.09719.96
5.4.120.0330.06719.80
5.4.110.0400.06319.68
5.4.100.0370.05319.79
5.4.90.0370.10719.60
5.4.80.0300.05719.66
5.4.70.0430.05719.73
5.4.60.0330.10719.69
5.4.50.0330.08719.76
5.4.40.0400.07319.87
5.4.30.0270.06719.57
5.4.20.0200.06719.54
5.4.10.0200.06719.83
5.4.00.0270.08719.25
5.3.290.0400.06715.79
5.3.280.0230.06015.82
5.3.270.0270.07015.88
5.3.260.0230.06315.84
5.3.250.0270.06015.71
5.3.240.0230.06015.80
5.3.230.0370.09315.71
5.3.220.0200.06715.61
5.3.210.0200.06715.72
5.3.200.0270.05715.72
5.3.190.0200.06715.80
5.3.180.0230.06315.74
5.3.170.0270.07715.74
5.3.160.0270.08715.57
5.3.150.0330.05315.57
5.3.140.0330.08315.66
5.3.130.0270.06315.63
5.3.120.0330.05315.55
5.3.110.0200.06315.60
5.3.100.0270.06315.17
5.3.90.0170.06715.15
5.3.80.0300.07715.17
5.3.70.0230.05715.06

preferences:
22.84 ms | 406 KiB | 5 Q