3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Testing: $var\n"; } class foo { var $arr = array("test"); function bar($str) { $v[0] = "test"; $this->arr[0]($str); $this->v[0]($str); } } $foo = new foo; $foo->bar("bla");

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.0110.00716.87
8.3.50.0150.00722.03
8.3.40.0110.00418.61
8.3.30.0100.01018.93
8.3.20.0040.00420.35
8.3.10.0000.00823.33
8.3.00.0050.00321.86
8.2.180.0120.00316.88
8.2.170.0100.01022.96
8.2.160.0130.00422.08
8.2.150.0000.00925.66
8.2.140.0040.00424.66
8.2.130.0040.00420.86
8.2.120.0030.00526.35
8.2.110.0070.00319.27
8.2.100.0070.00418.05
8.2.90.0050.00319.34
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0060.00317.93
8.2.50.0060.00318.09
8.2.40.0000.00820.64
8.2.30.0040.00419.50
8.2.20.0090.00017.81
8.2.10.0070.00018.12
8.2.00.0040.00417.98
8.1.280.0150.00025.92
8.1.270.0000.00921.78
8.1.260.0060.00628.09
8.1.250.0000.00828.09
8.1.240.0060.00322.71
8.1.230.0090.00317.83
8.1.220.0050.00317.79
8.1.210.0090.00018.77
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0080.00018.46
8.1.160.0000.00820.69
8.1.150.0000.00720.54
8.1.140.0060.00317.34
8.1.130.0000.00717.62
8.1.120.0040.00417.44
8.1.110.0050.00317.38
8.1.100.0070.00017.41
8.1.90.0040.00417.22
8.1.80.0030.00517.37
8.1.70.0000.00717.28
8.1.60.0030.00617.66
8.1.50.0000.00817.46
8.1.40.0090.00017.52
8.1.30.0040.00417.56
8.1.20.0040.00417.68
8.1.10.0030.00517.43
8.1.00.0040.00417.54
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.56
8.0.270.0080.00016.87
8.0.260.0030.00317.09
8.0.250.0030.00616.89
8.0.240.0000.00716.90
8.0.230.0030.00316.94
8.0.220.0060.00316.93
8.0.210.0050.00216.89
8.0.200.0040.00416.87
8.0.190.0000.00817.02
8.0.180.0030.00617.01
8.0.170.0080.00016.99
8.0.160.0020.00517.02
8.0.150.0050.00216.94
8.0.140.0000.00716.86
8.0.130.0060.00013.38
8.0.120.0000.00716.91
8.0.110.0040.00416.80
8.0.100.0050.00216.81
8.0.90.0000.00716.73
8.0.80.0040.01116.95
8.0.70.0000.00716.96
8.0.60.0000.00816.96
8.0.50.0070.00016.80
8.0.30.0090.00917.09
8.0.20.0120.00617.40
8.0.10.0080.00017.03
8.0.00.0100.00716.88
7.4.330.0020.00216.82
7.4.320.0000.00616.54
7.4.300.0000.00616.41
7.4.290.0000.00816.52
7.4.280.0000.00716.50
7.4.270.0000.00716.45
7.4.260.0090.00016.52
7.4.250.0070.00016.60
7.4.240.0100.00016.40
7.4.230.0070.00016.69
7.4.220.0140.00316.70
7.4.210.0060.00816.66
7.4.200.0030.00316.38
7.4.160.0120.00316.49
7.4.150.0120.00617.40
7.4.140.0130.00917.86
7.4.130.0100.00816.70
7.4.120.0090.01216.52
7.4.110.0030.01316.39
7.4.100.0090.00916.60
7.4.90.0060.01116.41
7.4.80.0090.00919.39
7.4.70.0120.00616.49
7.4.60.0160.00316.40
7.4.50.0090.00616.41
7.4.40.0100.00716.37
7.4.30.0090.01216.58
7.4.00.0060.00914.84
7.3.330.0060.00013.41
7.3.320.0000.00513.45
7.3.310.0070.00016.25
7.3.300.0030.00316.36
7.3.290.0050.01016.42
7.3.280.0100.00716.40
7.3.270.0100.00717.40
7.3.260.0120.00616.63
7.3.250.0150.00716.41
7.3.240.0080.01016.56
7.3.230.0110.00616.48
7.3.210.0040.01216.62
7.3.200.0120.00619.39
7.3.190.0030.01516.47
7.3.180.0150.00416.61
7.3.170.0110.01216.39
7.3.160.0090.00616.64
7.2.330.0090.00916.80
7.2.320.0110.00516.70
7.2.310.0040.01216.60
7.2.300.0060.01016.80
7.2.290.0060.01016.50
7.2.60.0070.00716.67
7.2.00.0060.00618.85
7.1.200.0040.00715.80
7.1.100.0030.00918.30
7.1.70.0000.00717.30
7.1.60.0070.01719.40
7.1.50.0090.00316.82
7.1.00.0030.07322.32
7.0.200.0030.00716.73
7.0.60.0130.08021.66
7.0.50.0130.08017.91
7.0.40.0100.06320.21
7.0.30.0270.08020.09
7.0.20.0230.07720.12
7.0.10.0070.04020.30
7.0.00.0030.07020.02
5.6.280.0000.03321.03
5.6.210.0170.05720.65
5.6.200.0230.07018.22
5.6.190.0100.08720.46
5.6.180.0100.05020.34
5.6.170.0100.05020.55
5.6.160.0000.06020.54
5.6.150.0030.06018.18
5.6.140.0070.07318.21
5.6.130.0100.03318.13
5.6.120.0000.09721.12
5.6.110.0100.07720.96
5.6.100.0130.06020.98
5.6.90.0070.07321.11
5.6.80.0070.03720.41
5.5.350.0130.03020.38
5.5.340.0130.04317.97
5.5.330.0000.04720.27
5.5.320.0470.04320.24
5.5.310.0170.07020.42
5.5.300.0070.08718.09
5.5.290.0030.05717.95
5.5.280.0070.04020.83
5.5.270.0070.07720.79
5.5.260.0100.08720.95
5.5.250.0100.07320.69
5.5.240.0200.07020.04

preferences:
56.4 ms | 401 KiB | 5 Q