3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar; } $foo = new Foo; $arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0"); // echo Foo::bar; // foreach($arr as $val){ var_dump($val); }

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)
8.3.70.0000.01618.28
8.3.60.0180.00418.38
8.3.50.0140.01121.86
8.3.40.0090.00618.50
8.3.30.0040.01118.70
8.3.20.0070.00020.16
8.3.10.0040.00423.66
8.3.00.0090.00319.38
8.2.190.0070.00716.60
8.2.180.0150.00616.75
8.2.170.0090.00622.96
8.2.160.0120.00319.42
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00617.38
8.2.110.0090.00321.00
8.2.100.0090.00317.80
8.2.90.0080.00019.13
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0060.00317.91
8.2.50.0030.00618.07
8.2.40.0000.00819.47
8.2.30.0040.00420.62
8.2.20.0040.00417.59
8.2.10.0020.00518.06
8.2.00.0040.00418.04
8.1.280.0130.00325.92
8.1.270.0030.00623.72
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0000.01117.53
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0080.00417.35
8.1.190.0040.00417.11
8.1.180.0000.00718.10
8.1.170.0070.00018.80
8.1.160.0000.00722.02
8.1.150.0040.00418.90
8.1.140.0040.00419.48
8.1.130.0000.00717.70
8.1.120.0000.00717.51
8.1.110.0030.00517.42
8.1.100.0050.00317.41
8.1.90.0000.00817.47
8.1.80.0040.00317.36
8.1.70.0030.00317.48
8.1.60.0000.00717.55
8.1.50.0050.00317.43
8.1.40.0050.00317.52
8.1.30.0040.00417.64
8.1.20.0080.00017.54
8.1.10.0070.00017.60
8.1.00.0050.00317.55
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0070.00018.36
8.0.270.0070.00016.91
8.0.260.0030.00317.17
8.0.250.0000.00816.91
8.0.240.0000.00717.00
8.0.230.0040.00417.06
8.0.220.0100.00016.93
8.0.210.0000.00716.96
8.0.200.0000.00716.91
8.0.190.0000.00817.00
8.0.180.0030.00616.97
8.0.170.0040.00416.99
8.0.160.0040.00416.95
8.0.150.0050.00216.78
8.0.140.0000.00816.89
8.0.130.0060.00013.31
8.0.120.0000.00716.95
8.0.110.0070.00016.89
8.0.100.0000.00716.84
8.0.90.0070.00016.82
8.0.80.0130.00316.86
8.0.70.0030.00516.90
8.0.60.0000.00717.00
8.0.50.0000.00816.82
8.0.30.0110.00817.00
8.0.20.0120.00717.40
8.0.10.0040.00416.96
8.0.00.0110.00916.72
7.4.330.0030.00315.08
7.4.320.0030.00316.48
7.4.300.0030.00316.50
7.4.290.0030.00316.60
7.4.280.0000.00716.53
7.4.270.0040.00416.37
7.4.260.0030.00316.43
7.4.250.0030.00516.57
7.4.240.0020.00516.51
7.4.230.0000.00716.46
7.4.220.0100.01316.63
7.4.210.0090.00916.61
7.4.200.0070.00016.49
7.4.160.0100.01016.47
7.4.150.0170.00317.40
7.4.140.0190.00517.86
7.4.130.0080.01116.52
7.4.120.0090.00716.50
7.4.110.0040.01816.75
7.4.100.0090.00916.43
7.4.90.0000.01616.40
7.4.80.0090.00919.39
7.4.70.0100.00616.60
7.4.60.0040.01116.54
7.4.50.0030.00516.70
7.4.40.0130.00316.72
7.4.30.0160.00016.55
7.4.00.0080.00614.93
7.3.330.0020.00213.32
7.3.320.0000.00613.23
7.3.310.0080.00016.17
7.3.300.0000.00716.21
7.3.290.0030.00316.38
7.3.280.0110.00616.36
7.3.270.0100.00717.40
7.3.260.0030.01316.46
7.3.250.0160.00316.43
7.3.240.0100.01016.38
7.3.230.0000.01616.40
7.3.210.0060.00916.41
7.3.200.0060.01516.57
7.3.190.0090.00616.49
7.3.180.0030.01416.35
7.3.170.0060.01116.52
7.3.160.0030.01616.46
7.2.330.0100.01316.31
7.2.320.0060.01316.69
7.2.310.0190.00316.30
7.2.300.0090.00916.52
7.2.290.0100.01016.34
7.2.60.0000.01316.79
7.2.00.0030.00919.25
7.1.200.0040.01115.87
7.1.100.0130.00317.68
7.1.70.0000.00816.85
7.1.60.0140.01019.43
7.1.50.0070.00416.57
7.1.00.0100.07022.48
7.0.200.0220.00015.02
7.0.60.0070.07720.08
7.0.50.0030.06317.98
7.0.40.0100.09020.13
7.0.30.0170.04020.17
7.0.20.0330.03320.09
7.0.10.0070.04320.09
7.0.00.0070.09020.20
5.6.280.0000.05021.13
5.6.210.0100.07720.70
5.6.200.0030.07018.13
5.6.190.0130.05020.66
5.6.180.3930.04320.50
5.6.170.0370.07320.54
5.6.160.0100.05720.55
5.6.150.0030.05718.19
5.6.140.0130.07318.23
5.6.130.0030.07718.21
5.6.120.0000.08021.05
5.6.110.0070.07721.11
5.6.100.0070.07721.00
5.6.90.0100.06020.99
5.6.80.0030.07320.51
5.5.350.0070.06720.38
5.5.340.0030.07317.98
5.5.330.0130.07720.28
5.5.320.0200.07320.34
5.5.310.0170.04720.41
5.5.300.0000.04717.98
5.5.290.0070.08017.91
5.5.280.0070.08720.87
5.5.270.0030.04320.67
5.5.260.0030.09020.75
5.5.250.0070.08720.68
5.5.240.0030.07020.35
5.4.450.0270.06319.58
5.4.440.0170.06719.20
5.4.430.0300.07019.38
5.4.420.0170.07019.48
5.4.410.0230.04319.27
5.4.400.0230.07319.31
5.4.390.0330.06019.29
5.4.380.0170.07019.38
5.4.370.0600.05019.14
5.4.360.0270.05718.98
5.4.350.0500.05019.29
5.4.340.0200.05319.22
5.4.320.0330.05319.25
5.4.310.0170.06019.15
5.4.300.0230.04719.15
5.4.290.0230.07019.07
5.4.280.0370.05019.15
5.4.270.0530.05319.40
5.4.260.0330.06019.34
5.4.250.0500.06019.25
5.4.240.0130.05019.05
5.4.230.0500.05319.14
5.4.220.0470.05719.14
5.4.210.0030.06319.25
5.4.200.0200.06319.36
5.4.190.0170.06319.30
5.4.180.0230.05019.11
5.4.170.0130.06019.11
5.4.160.0230.04319.10
5.4.150.0130.07719.26
5.4.140.0230.05716.36
5.4.130.0030.06716.38
5.4.120.0130.06716.32
5.4.110.0130.05316.45
5.4.100.0100.05716.43
5.4.90.0200.04316.62
5.4.80.0270.04316.58
5.4.70.0300.05716.25
5.4.60.0700.05316.22
5.4.50.0470.05316.66
5.4.40.0330.05016.50
5.4.30.0630.05016.40
5.4.20.0430.06016.23
5.4.10.0500.05316.39
5.4.00.0600.06015.79

preferences:
50.07 ms | 401 KiB | 5 Q