3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { echo "baz"; } } function on(callable $c) // Warning, no call { $c(); // Warning, call } $c = ["Foo", "bar"]; // No warning, no call on($c);

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.0070.00718.22
8.3.50.0040.01118.06
8.3.40.0130.00718.97
8.3.30.0110.00718.59
8.3.20.0070.00021.60
8.3.10.0070.00321.95
8.3.00.0090.00020.95
8.2.180.0100.01018.31
8.2.170.0100.00722.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00020.35
8.2.120.0050.00326.35
8.2.110.0060.00319.24
8.2.100.0130.00017.91
8.2.90.0030.00519.05
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00718.04
8.2.50.0030.00518.10
8.2.40.0050.00320.60
8.2.30.0040.00420.30
8.2.20.0040.00417.98
8.2.10.0000.00917.95
8.2.00.0040.00418.25
8.1.280.0100.01025.92
8.1.270.0080.00023.84
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.97
8.1.230.0040.00817.51
8.1.220.0080.00017.77
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0050.00318.51
8.1.160.0070.00018.70
8.1.150.0030.00320.13
8.1.140.0030.00619.46
8.1.130.0040.00419.05
8.1.120.0030.00517.46
8.1.110.0040.00417.33
8.1.100.0030.00617.23
8.1.90.0070.00017.36
8.1.80.0040.00417.36
8.1.70.0080.00017.37
8.1.60.0000.00717.55
8.1.50.0000.00717.51
8.1.40.0020.00517.46
8.1.30.0080.00017.54
8.1.20.0000.00717.68
8.1.10.0030.00517.56
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.33
8.0.270.0000.00817.30
8.0.260.0000.00617.19
8.0.250.0000.00716.85
8.0.240.0040.00416.86
8.0.230.0040.00416.93
8.0.220.0000.00716.89
8.0.210.0030.00316.86
8.0.200.0000.00716.86
8.0.190.0080.00016.78
8.0.180.0000.00716.88
8.0.170.0040.00416.88
8.0.160.0030.00416.91
8.0.150.0050.00316.87
8.0.140.0000.00816.82
8.0.130.0050.00013.29
8.0.120.0060.00316.85
8.0.110.0000.00716.90
8.0.100.0040.00416.75
8.0.90.0000.00716.95
8.0.80.0090.00616.77
8.0.70.0000.00716.91
8.0.60.0040.00416.92
8.0.50.0000.00716.78
8.0.30.0100.00817.18
8.0.20.0120.00617.40
8.0.10.0040.00416.79
8.0.00.0110.00616.66
7.4.330.0060.00015.55
7.4.320.0030.00316.44
7.4.300.0030.00316.60
7.4.290.0000.00916.49
7.4.280.0040.00416.52
7.4.270.0000.00716.42
7.4.260.0000.00716.46
7.4.250.0000.00716.47
7.4.240.0070.00016.52
7.4.230.0070.00016.70
7.4.220.0070.01416.67
7.4.210.0080.00816.54
7.4.200.0000.00716.59
7.4.160.0090.00916.44
7.4.150.0140.00417.40
7.4.140.0120.01217.86
7.4.130.0100.00816.44
7.4.120.0140.00816.47
7.4.110.0090.00916.68
7.4.100.0130.00416.68
7.4.90.0170.00716.54
7.4.80.0090.00919.39
7.4.70.0090.00616.57
7.4.60.0100.00716.49
7.4.50.0040.01416.21
7.4.40.0140.00316.47
7.4.30.0080.00816.50
7.4.00.0110.00415.21
7.3.330.0000.00513.33
7.3.320.0030.00313.34
7.3.310.0000.00716.41
7.3.300.0000.00616.35
7.3.290.0000.00716.22
7.3.280.0100.00816.33
7.3.270.0090.00917.40
7.3.260.0170.00516.39
7.3.250.0100.00916.37
7.3.240.0080.00816.52
7.3.230.0130.00316.29
7.3.210.0120.00416.31
7.3.200.0110.00516.33
7.3.190.0110.00516.52
7.3.180.0080.01116.27
7.3.170.0100.00716.43
7.3.160.0060.00916.30
7.2.330.0100.01016.70
7.2.320.0090.01216.73
7.2.310.0160.00016.81
7.2.300.0060.01616.24
7.2.290.0030.02016.17
7.2.80.0080.00316.54
7.2.60.0080.00416.61
7.2.00.0060.00618.86
7.1.200.0030.00815.63
7.1.100.0000.01417.92
7.1.70.0100.00317.00
7.1.60.0030.00717.19
7.1.50.0170.00716.97
7.1.20.0400.07740.36
7.1.10.0030.07022.23
7.1.00.0130.05722.47
7.0.200.0070.01416.69
7.0.160.0130.07321.80
7.0.150.0070.08021.80
7.0.140.0200.06021.99
7.0.130.0170.05321.74
7.0.120.0030.06021.93
7.0.110.0170.05321.80
7.0.100.0100.05721.98
7.0.90.0170.07321.91
7.0.80.0130.08021.81
7.0.70.0030.08021.80
7.0.60.0070.06021.79
7.0.50.0130.05021.92
7.0.40.0070.06021.92
7.0.30.0070.05721.89
7.0.20.0200.04321.74
7.0.10.0030.08321.92
7.0.00.0170.05021.89

preferences:
58.37 ms | 400 KiB | 5 Q