3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var){ echo "in function: ",__FUNCTION__; echo "testing $var\n"; } class bla { public $foo = ["test"]; public function bar($str="default") { echo $this->foo($str),"\n"; // php5 fails w/o method below specified } } $bla = new bla; $bla->bar();

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.0150.00316.38
8.3.60.0140.00716.75
8.3.50.0130.00422.11
8.3.40.0070.00718.80
8.3.30.0070.00718.84
8.3.20.0040.00420.16
8.3.10.0050.00321.87
8.3.00.0000.00721.76
8.2.190.0000.01518.54
8.2.180.0110.00416.75
8.2.170.0130.00722.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00520.79
8.2.120.0050.00326.35
8.2.110.0050.00519.39
8.2.100.0040.00817.80
8.2.90.0080.00019.02
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0030.00617.80
8.2.50.0000.00818.09
8.2.40.0040.00420.54
8.2.30.0050.00219.42
8.2.20.0000.00717.74
8.2.10.0000.00717.87
8.2.00.0040.00418.00
8.1.280.0110.00725.92
8.1.270.0040.00422.05
8.1.260.0030.00928.09
8.1.250.0070.00028.09
8.1.240.0060.00322.71
8.1.230.0060.00617.76
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00918.34
8.1.160.0030.00520.57
8.1.150.0030.00618.87
8.1.140.0000.00819.51
8.1.130.0040.00417.69
8.1.120.0030.00317.29
8.1.110.0000.00717.31
8.1.100.0020.00517.36
8.1.90.0040.00417.44
8.1.80.0000.00717.30
8.1.70.0030.00317.30
8.1.60.0000.00717.48
8.1.50.0000.00917.52
8.1.40.0000.01017.49
8.1.30.0090.00017.61
8.1.20.0060.00317.50
8.1.10.0040.00417.66
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.30
8.0.270.0000.00717.18
8.0.260.0030.00317.18
8.0.250.0040.00416.82
8.0.240.0070.00017.02
8.0.230.0000.00716.90
8.0.220.0030.00316.82
8.0.210.0020.00516.86
8.0.200.0000.00816.79
8.0.190.0030.00616.93
8.0.180.0040.00416.91
8.0.170.0090.00016.94
8.0.160.0070.00016.93
8.0.150.0000.00816.81
8.0.140.0050.00216.90
8.0.130.0060.00013.32
8.0.120.0060.00316.82
8.0.110.0040.00416.95
8.0.100.0000.00716.76
8.0.90.0070.00017.00
8.0.80.0100.01016.77
8.0.70.0000.00717.00
8.0.60.0000.00716.76
8.0.50.0040.00416.82
8.0.30.0080.01117.04
8.0.20.0110.00817.40
8.0.10.0000.00717.00
8.0.00.0090.00916.78
7.4.330.0020.00216.82
7.4.320.0030.00316.44
7.4.300.0060.00016.50
7.4.290.0000.00716.58
7.4.280.0040.00416.47
7.4.270.0030.00316.59
7.4.260.0100.00016.50
7.4.250.0000.00716.49
7.4.240.0070.00016.58
7.4.230.0040.00416.70
7.4.220.0100.00716.54
7.4.210.0050.01016.59
7.4.200.0050.00316.54
7.4.160.0110.00416.63
7.4.150.0110.00817.40
7.4.140.0120.00817.86
7.4.130.0080.01016.56
7.4.120.0120.00416.44
7.4.110.0130.00316.63
7.4.100.0130.00316.47
7.4.90.0120.00616.58
7.4.80.0140.00319.39
7.4.70.0070.01016.59
7.4.60.0130.01016.66
7.4.50.0120.00316.49
7.4.40.0150.01116.36
7.4.30.0210.00316.64
7.4.00.0000.01715.12
7.3.330.0000.00613.39
7.3.320.0000.00613.36
7.3.310.0000.00716.32
7.3.300.0000.00616.23
7.3.290.0040.00416.39
7.3.280.0100.00816.37
7.3.270.0120.00817.40
7.3.260.0070.01016.46
7.3.250.0070.01216.42
7.3.240.0110.00616.41
7.3.230.0110.00516.49
7.3.210.0180.00016.59
7.3.200.0110.00719.39
7.3.190.0090.00616.28
7.3.180.0050.01116.46
7.3.170.0110.00816.36
7.3.160.0090.00616.32
7.3.120.0120.00314.85
7.3.110.0160.00314.82
7.3.100.0090.00914.66
7.3.90.0040.01114.73
7.3.80.0070.00314.83
7.3.70.0030.00614.93
7.3.60.0000.01114.65
7.3.50.0070.00714.91
7.3.40.0000.01514.79
7.3.30.0040.00914.79
7.3.20.0100.00316.34
7.3.10.0000.01316.63
7.3.00.0100.00316.58
7.2.330.0070.01016.69
7.2.320.0170.00416.31
7.2.310.0130.00316.43
7.2.300.0140.00316.37
7.2.290.0110.01116.28
7.2.240.0060.01015.12
7.2.230.0130.00315.06
7.2.220.0000.01214.93
7.2.210.0120.00014.53
7.2.200.0030.01015.10
7.2.190.0060.00614.68
7.2.180.0030.01314.89
7.2.170.0040.00814.91
7.2.160.0030.00915.12
7.2.150.0100.00316.59
7.2.140.0070.00716.79
7.2.130.0070.00316.98
7.2.120.0070.00716.81
7.2.110.0180.01016.66
7.2.100.0070.01116.71
7.2.90.0030.01416.79
7.2.80.0070.01116.80
7.2.70.0030.01016.75
7.2.60.0030.00816.73
7.2.50.0090.00616.88
7.2.40.0040.01116.90
7.2.30.0090.00616.91
7.2.20.0070.01016.85
7.2.10.0070.00716.99
7.2.00.0060.00817.89
7.1.330.0040.01415.53
7.1.320.0060.00615.46
7.1.310.0030.00915.36
7.1.300.0060.00315.34
7.1.290.0030.00915.64
7.1.280.0030.01015.61
7.1.270.0040.00415.64
7.1.260.0060.00915.64
7.1.250.0090.00315.65
7.1.200.0060.00915.68
7.1.100.0000.01618.16
7.1.70.0060.00317.09
7.1.60.0110.00719.40
7.1.50.0040.01816.87
7.1.00.0070.07322.30
7.0.200.0030.00716.50
7.0.60.0200.08321.83
7.0.50.0100.06717.88
7.0.40.0070.08720.15
7.0.30.0330.04320.15
7.0.20.0470.06320.33
7.0.10.0000.05020.17
7.0.00.0070.06020.07
5.6.280.0030.03021.07
5.6.210.0070.08320.45
5.6.200.0100.07018.18
5.6.190.0100.06320.64
5.6.180.0330.04720.67
5.6.170.0200.07020.54
5.6.160.0130.08020.54
5.6.150.0030.04718.14
5.6.140.0100.07718.20
5.6.130.0030.04718.17
5.6.120.0170.06321.01
5.6.110.0100.08020.86
5.6.100.0070.06721.11
5.6.90.0100.06020.88
5.6.80.0030.08020.41
5.5.350.0230.07720.41
5.5.340.0130.04317.99
5.5.330.0100.05320.31
5.5.320.0530.06320.34
5.5.310.0300.05320.30
5.5.300.0100.07717.98
5.5.290.0100.08017.96
5.5.280.0130.03720.88
5.5.270.0030.09020.87
5.5.260.0030.05720.67
5.5.250.0030.04020.78
5.5.240.0200.05720.27

preferences:
44.17 ms | 401 KiB | 5 Q