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 } } ((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.0190.00316.63
8.3.50.0120.00318.30
8.3.40.0070.01019.00
8.3.30.0070.00718.80
8.3.20.0040.00420.16
8.3.10.0070.00023.61
8.3.00.0000.00823.65
8.2.180.0070.00716.50
8.2.170.0120.00322.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00020.75
8.2.120.0040.00426.35
8.2.110.0060.00319.38
8.2.100.0110.00017.80
8.2.90.0000.00819.13
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.09
8.2.40.0000.00922.27
8.2.30.0030.00319.42
8.2.20.0050.00317.63
8.2.10.0020.00518.05
8.2.00.0070.00017.93
8.1.280.0070.00725.92
8.1.270.0040.00422.12
8.1.260.0110.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00022.67
8.1.230.0060.00617.70
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.37
8.1.160.0040.00420.68
8.1.150.0040.00418.73
8.1.140.0040.00417.32
8.1.130.0040.00417.56
8.1.120.0030.00317.25
8.1.110.0040.00417.34
8.1.100.0040.00417.23
8.1.90.0020.00517.24
8.1.80.0040.00417.34
8.1.70.0080.00017.41
8.1.60.0000.00717.36
8.1.50.0060.00317.48
8.1.40.0060.00317.35
8.1.30.0050.00317.61
8.1.20.0080.00017.56
8.1.10.0050.00217.55
8.1.00.0000.00817.33
8.0.300.0050.00318.79
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0040.00416.84
8.0.260.0070.00017.24
8.0.250.0030.00316.94
8.0.240.0000.00716.85
8.0.230.0030.00316.95
8.0.220.0040.00416.80
8.0.210.0040.00416.89
8.0.200.0030.00316.88
8.0.190.0040.00416.95
8.0.180.0070.00016.82
8.0.170.0050.00316.80
8.0.160.0030.00316.87
8.0.150.0040.00416.86
8.0.140.0070.00016.79
8.0.130.0050.00013.31
8.0.120.0000.00816.84
8.0.110.0040.00416.85
8.0.100.0080.00016.71
8.0.90.0050.00216.71
8.0.80.0150.00416.87
8.0.70.0030.00516.88
8.0.60.0000.00716.79
8.0.50.0040.00416.93
8.0.30.0080.01016.96
8.0.20.0090.01117.40
8.0.10.0000.00716.84
8.0.00.0110.00716.77
7.4.330.0000.00516.67
7.4.320.0030.00316.49
7.4.300.0030.00316.52
7.4.290.0000.00716.56
7.4.280.0000.00716.50
7.4.270.0000.00616.41
7.4.260.0050.00516.56
7.4.250.0040.00416.56
7.4.240.0000.00716.55
7.4.230.0000.00716.30
7.4.220.0100.00716.64
7.4.210.0070.00716.62
7.4.200.0030.00316.55
7.4.160.0070.00716.47
7.4.150.0000.01917.40
7.4.140.0070.01417.86
7.4.130.0140.00716.60
7.4.120.0070.01216.68
7.4.110.0140.00316.29
7.4.100.0080.00816.39
7.4.90.0070.01116.70
7.4.80.0060.01019.39
7.4.70.0110.00616.60
7.4.60.0160.00316.37
7.4.50.0100.00616.59
7.4.40.0130.01016.65
7.4.30.0100.01016.50
7.4.00.0070.00714.76
7.3.330.0040.00413.25
7.3.320.0030.00313.32
7.3.310.0030.00316.24
7.3.300.0040.00416.16
7.3.290.0080.00016.19
7.3.280.0070.00816.29
7.3.270.0100.00717.40
7.3.260.0080.01616.65
7.3.250.0100.01116.46
7.3.240.0100.00716.50
7.3.230.0130.00316.52
7.3.210.0040.01416.48
7.3.200.0170.00719.39
7.3.190.0080.00816.33
7.3.180.0150.00616.42
7.3.170.0090.00616.43
7.3.160.0080.00716.46
7.3.10.0000.01316.09
7.3.00.0030.00916.39
7.2.330.0150.00316.41
7.2.320.0120.00616.66
7.2.310.0030.01316.76
7.2.300.0070.01016.76
7.2.290.0160.03516.54
7.2.130.0180.00716.54
7.2.120.0070.00716.56
7.2.110.0080.00516.37
7.2.100.0060.00616.47
7.2.90.0140.00416.49
7.2.80.0090.00916.53
7.2.70.0140.00716.54
7.2.60.0100.00516.63
7.2.50.0200.00416.52
7.2.40.0110.01116.58
7.2.30.0070.01116.76
7.2.20.0170.00716.52
7.2.10.0040.01616.54
7.2.00.0050.01017.92
7.1.250.0040.00415.23
7.1.200.0030.00915.73
7.1.100.0070.01017.96
7.1.70.0030.00517.09
7.1.60.0040.01819.40
7.1.50.0040.01116.86
7.1.00.0030.07722.36
7.0.200.0000.00816.34
7.0.60.0200.07321.74
7.0.50.0170.07317.86
7.0.40.0030.09320.09
7.0.30.0300.05020.25
7.0.20.0300.08320.15
7.0.10.0070.07320.26
7.0.00.0130.04720.10
5.6.280.0000.04320.90
5.6.210.0100.07720.70
5.6.200.0130.04718.14
5.6.190.0100.06720.47
5.6.180.0400.07020.61
5.6.170.0200.04020.62
5.6.160.0000.08020.54
5.6.150.0030.08718.15
5.6.140.0070.08018.18
5.6.130.0030.04718.18
5.6.120.0130.08020.99
5.6.110.0100.08021.05
5.6.100.0000.07020.98
5.6.90.0070.08721.02
5.6.80.0230.07020.43
5.5.350.0230.07320.38
5.5.340.0070.06717.95
5.5.330.0000.08020.57
5.5.320.0670.06320.27
5.5.310.0330.07320.43
5.5.300.0070.08017.94
5.5.290.0070.05017.97
5.5.280.0030.04020.77
5.5.270.0100.05020.89
5.5.260.0170.07320.89
5.5.250.0070.06720.59
5.5.240.0300.04720.35

preferences:
54.63 ms | 400 KiB | 5 Q