3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var="default string\n") { echo "Test $var\n"; } class foo { var $arr = ["test"]; function bar() { ($this->arr[0])(); } } (new foo)->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.38
8.3.50.0120.00721.99
8.3.40.0070.01418.63
8.3.30.0130.00618.67
8.3.20.0080.00020.07
8.3.10.0000.00823.64
8.3.00.0040.00423.71
8.2.180.0150.00016.50
8.2.170.0100.00722.96
8.2.160.0070.00722.17
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.80
8.2.120.0100.00726.35
8.2.110.0100.00019.27
8.2.100.0110.00018.03
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0030.00717.63
8.2.60.0000.00818.04
8.2.50.0040.00418.09
8.2.40.0070.00020.54
8.2.30.0030.00319.41
8.2.20.0060.00317.52
8.2.10.0000.00818.00
8.2.00.0040.00417.97
8.1.280.0110.00725.92
8.1.270.0040.00422.05
8.1.260.0110.00028.09
8.1.250.0080.00028.09
8.1.240.0070.00419.27
8.1.230.0000.01117.83
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.00
8.1.190.0000.00816.98
8.1.180.0040.00418.10
8.1.170.0000.00818.39
8.1.160.0030.00320.53
8.1.150.0000.00820.45
8.1.140.0040.00419.49
8.1.130.0030.00317.47
8.1.120.0000.00817.22
8.1.110.0000.00717.20
8.1.100.0000.00817.28
8.1.90.0050.00317.29
8.1.80.0000.00717.34
8.1.70.0000.00717.35
8.1.60.0030.00617.42
8.1.50.0030.00617.41
8.1.40.0030.00517.41
8.1.30.0000.00817.43
8.1.20.0060.00317.50
8.1.10.0050.00217.36
8.1.00.0000.00817.39
8.0.300.0040.00418.78
8.0.290.0000.00816.75
8.0.280.0040.00418.39
8.0.270.0030.00317.25
8.0.260.0030.00317.13
8.0.250.0060.00316.93
8.0.240.0070.00016.94
8.0.230.0050.00216.96
8.0.220.0000.00816.84
8.0.210.0040.00416.74
8.0.200.0030.00316.98
8.0.190.0000.00816.93
8.0.180.0040.00416.92
8.0.170.0000.00816.80
8.0.160.0070.00016.95
8.0.150.0040.00416.95
8.0.140.0040.00416.88
8.0.130.0050.00013.39
8.0.120.0000.00816.87
8.0.110.0030.00616.77
8.0.100.0040.00416.79
8.0.90.0050.00216.89
8.0.80.0040.01116.83
8.0.70.0080.00016.76
8.0.60.0040.00416.76
8.0.50.0000.00816.79
8.0.30.0110.00617.00
8.0.20.0070.01117.40
8.0.10.0050.00316.89
8.0.00.0060.01116.81
7.4.330.0020.00216.78
7.4.320.0000.00716.57
7.4.300.0060.00016.42
7.4.290.0000.00716.48
7.4.280.0040.00416.43
7.4.270.0030.00316.62
7.4.260.0080.00316.60
7.4.250.0070.00016.45
7.4.240.0000.00816.62
7.4.230.0030.00316.35
7.4.220.0120.00616.62
7.4.210.0050.00916.58
7.4.200.0000.00716.24
7.4.160.0110.00416.51
7.4.150.0070.01017.40
7.4.140.0090.01217.86
7.4.130.0110.01216.41
7.4.120.0150.00516.56
7.4.110.0120.01216.46
7.4.100.0060.01016.28
7.4.90.0110.00516.33
7.4.80.0060.01019.39
7.4.70.0130.00316.54
7.4.60.0120.00616.46
7.4.50.0090.00516.38
7.4.40.0090.01216.63
7.4.30.0030.01316.36
7.4.00.0070.00714.88
7.3.330.0040.00413.19
7.3.320.0020.00313.37
7.3.310.0000.00616.22
7.3.300.0070.00016.36
7.3.290.0040.00416.37
7.3.280.0080.00916.32
7.3.270.0090.01317.40
7.3.260.0030.01316.38
7.3.250.0090.01116.42
7.3.240.0100.01216.47
7.3.230.0100.01016.39
7.3.210.0130.01016.50
7.3.200.0120.00819.39
7.3.190.0010.00216.28
7.3.180.0080.01216.46
7.3.170.0060.00916.56
7.3.160.0140.00316.64
7.2.330.0130.00516.71
7.2.320.0040.01416.45
7.2.310.0060.00916.64
7.2.300.0100.00716.64
7.2.290.0040.01216.69
7.2.60.0140.00316.59
7.2.00.0080.01119.12
7.1.200.0000.00815.79
7.1.100.0090.00318.12
7.1.70.0040.00817.25
7.1.60.0130.01319.40
7.1.50.0030.00916.89
7.1.00.0030.07722.44
7.0.200.0030.00616.70
7.0.60.0170.08021.63
7.0.50.0070.07317.98
7.0.40.0070.04320.23
7.0.30.0430.04320.30
7.0.20.0370.06720.06
7.0.10.0100.05020.30
7.0.00.0100.08020.22
5.6.280.0100.05021.04
5.6.210.0070.07720.55
5.6.200.0030.08718.12
5.6.190.0000.05720.55
5.6.180.0230.08320.41
5.6.170.0230.05020.55
5.6.160.0130.07720.55
5.6.150.0070.08018.18
5.6.140.0100.08018.15
5.6.130.0000.04318.23
5.6.120.0100.06321.00
5.6.110.0030.08320.99
5.6.100.0100.07021.13
5.6.90.0030.09020.95
5.6.80.0130.07720.39
5.5.350.0200.08020.47
5.5.340.0100.04318.07
5.5.330.0070.04020.57
5.5.320.0630.06720.34
5.5.310.0170.08720.27
5.5.300.0130.07317.99
5.5.290.0100.03318.07
5.5.280.0170.07720.82
5.5.270.0030.09020.80
5.5.260.0100.06020.80
5.5.250.0130.07720.69
5.5.240.0200.06720.26

preferences:
48.01 ms | 401 KiB | 5 Q