3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var){ echo "in function: ",__FUNCTION__; echo "testing $var\n"; } class bla { public function bar($str="default") { $foo = ["test"]; echo ($this->$foo)($str),"\n"; // php5 fails w/o method below specified } } (new 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.60.0140.00416.63
8.3.50.0060.01222.05
8.3.40.0110.00418.80
8.3.30.0100.00718.58
8.3.20.0100.00720.38
8.3.10.0000.00821.76
8.3.00.0040.00421.78
8.2.180.0070.00716.50
8.2.170.0100.01022.96
8.2.160.0090.00621.99
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.82
8.2.120.0040.00426.35
8.2.110.0100.00019.11
8.2.100.0070.00417.93
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0050.00517.63
8.2.60.0000.00818.04
8.2.50.0080.00018.09
8.2.40.0030.00622.30
8.2.30.0040.00419.32
8.2.20.0080.00017.68
8.2.10.0040.00418.00
8.2.00.0000.00718.06
8.1.280.0140.00425.92
8.1.270.0040.00422.23
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00422.53
8.1.230.0050.00517.70
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.54
8.1.160.0040.00420.76
8.1.150.0050.00318.94
8.1.140.0030.00519.55
8.1.130.0000.00717.69
8.1.120.0050.00317.43
8.1.110.0000.00717.42
8.1.100.0030.00517.31
8.1.90.0050.00317.33
8.1.80.0050.00317.49
8.1.70.0000.00717.46
8.1.60.0060.00317.51
8.1.50.0000.00917.53
8.1.40.0060.00317.41
8.1.30.0000.00817.59
8.1.20.0040.00417.52
8.1.10.0070.00017.45
8.1.00.0000.00817.56
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.30
8.0.260.0000.00617.14
8.0.250.0100.00017.04
8.0.240.0030.00316.94
8.0.230.0000.00716.95
8.0.220.0040.00416.93
8.0.210.0070.00016.94
8.0.200.0030.00317.03
8.0.190.0000.00917.02
8.0.180.0000.00716.95
8.0.170.0040.00416.96
8.0.160.0040.00416.85
8.0.150.0040.00416.89
8.0.140.0000.00816.77
8.0.130.0000.00513.46
8.0.120.0030.00516.91
8.0.110.0000.00716.86
8.0.100.0000.00716.78
8.0.90.0040.00416.97
8.0.80.0120.00616.91
8.0.70.0080.00016.77
8.0.60.0000.00816.81
8.0.50.0040.00416.89
8.0.30.0060.01217.05
8.0.20.0100.01317.40
8.0.10.0030.00516.95
8.0.00.0090.00816.64
7.4.330.0020.00216.78
7.4.320.0030.00316.54
7.4.300.0030.00316.51
7.4.290.0000.00716.40
7.4.280.0040.00416.50
7.4.270.0000.00616.60
7.4.260.0100.00016.55
7.4.250.0000.00816.57
7.4.240.0030.00316.50
7.4.230.0000.00716.32
7.4.220.0080.01216.63
7.4.210.0090.00816.60
7.4.200.0000.00816.51
7.4.160.0090.00916.60
7.4.150.0070.01717.40
7.4.140.0100.00817.86
7.4.130.0070.01216.51
7.4.120.0090.00816.40
7.4.110.0140.00316.57
7.4.100.0100.01316.49
7.4.90.0090.00916.53
7.4.80.0100.00619.39
7.4.70.0140.00316.58
7.4.60.0030.01616.48
7.4.50.0090.00616.58
7.4.40.0190.00316.74
7.4.30.0070.01416.61
7.4.00.0080.00914.91
7.3.330.0040.00213.38
7.3.320.0030.00413.46
7.3.310.0000.00716.37
7.3.300.0030.00316.35
7.3.290.0000.00716.30
7.3.280.0090.01016.42
7.3.270.0070.01017.40
7.3.260.0040.01816.41
7.3.250.0040.01316.51
7.3.240.0110.00616.46
7.3.230.0100.00716.39
7.3.210.0150.00416.50
7.3.200.0070.01319.39
7.3.190.0040.01216.42
7.3.180.0030.01416.42
7.3.170.0060.01216.56
7.3.160.0130.00716.55
7.3.120.0040.01415.04
7.3.110.0000.02014.60
7.3.100.0090.00314.99
7.3.90.0070.00715.12
7.3.80.0070.00714.77
7.3.70.0060.00914.78
7.3.60.0090.00014.79
7.3.50.0070.00414.81
7.3.40.0030.01014.72
7.3.30.0100.00314.93
7.3.20.0060.01016.43
7.3.10.0030.00916.71
7.3.00.0090.00616.59
7.2.330.0060.01616.56
7.2.320.0110.00616.62
7.2.310.0070.01116.50
7.2.300.0120.00416.70
7.2.290.0140.00616.66
7.2.250.0040.01615.05
7.2.240.0060.01215.05
7.2.230.0030.01015.07
7.2.220.0080.00814.96
7.2.210.0040.01114.78
7.2.200.0070.00714.97
7.2.190.0040.01515.10
7.2.180.0070.00715.05
7.2.170.0070.00314.99
7.2.110.0120.00816.36
7.2.60.0030.01016.73
7.2.00.0250.00318.95
7.1.330.0080.00615.92
7.1.320.0070.00715.43
7.1.310.0090.00615.61
7.1.300.0030.01415.73
7.1.290.0040.00415.61
7.1.280.0040.00415.46
7.1.270.0060.00615.43
7.1.260.0060.00915.67
7.1.200.0000.01015.71
7.1.100.0040.01118.25
7.1.70.0030.00517.13
7.1.60.0100.01319.40
7.1.50.0040.01216.86
7.1.00.0030.07722.29
7.0.200.0000.00816.39
7.0.60.0170.08021.77
7.0.50.0000.04317.85
7.0.40.0070.08720.09
7.0.30.0130.05020.24
7.0.20.0330.07320.08
7.0.10.0070.09020.12
7.0.00.0170.07720.08
5.6.280.0000.04321.12
5.6.210.0170.07020.67
5.6.200.0070.08718.20
5.6.190.0070.09320.46
5.6.180.0230.08320.61
5.6.170.0300.06720.47
5.6.160.0130.07320.55
5.6.150.0070.06318.19
5.6.140.0130.07018.15
5.6.130.0030.04018.18
5.6.120.0030.06321.02
5.6.110.0030.08721.11
5.6.100.0000.04320.99
5.6.90.0070.08321.13
5.6.80.0030.09320.45
5.5.350.0100.08020.43
5.5.340.0030.07717.99
5.5.330.0070.07320.41
5.5.320.0530.07320.30
5.5.310.0330.06720.30
5.5.300.0030.07318.03
5.5.290.0070.04717.99
5.5.280.0100.04720.68
5.5.270.0100.07020.76
5.5.260.0000.07320.65
5.5.250.0030.04320.67
5.5.240.0230.06720.35

preferences:
44.08 ms | 401 KiB | 5 Q