3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test()/* : void */ { } } $f = new Foo; $result = $f->test(); dd(isset($result));

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.0100.01018.43
8.3.50.0110.00416.36
8.3.40.0110.00718.93
8.3.30.0040.01118.87
8.3.20.0070.00022.09
8.3.10.0080.00023.65
8.3.00.0000.00819.79
8.2.180.0040.01418.29
8.2.170.0110.00422.96
8.2.160.0110.00620.34
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00317.73
8.2.110.0090.00022.03
8.2.100.0040.00817.75
8.2.90.0070.00019.04
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00917.91
8.2.50.0050.00318.07
8.2.40.0090.00019.39
8.2.30.0090.00020.67
8.2.20.0000.00717.66
8.2.10.0040.00418.04
8.2.00.0040.00417.99
8.1.280.0090.00625.92
8.1.270.0130.00723.71
8.1.260.0000.00726.35
8.1.250.0020.00528.09
8.1.240.0090.00022.39
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00721.95
8.1.150.0050.00218.82
8.1.140.0080.00017.37
8.1.130.0040.00417.63
8.1.120.0000.00717.36
8.1.110.0000.00717.38
8.1.100.0040.00417.45
8.1.90.0000.00717.29
8.1.80.0040.00717.27
8.1.70.0030.00517.38
8.1.60.0030.00517.46
8.1.50.0040.00417.42
8.1.40.0040.00417.49
8.1.30.0050.00317.56
8.1.20.0050.00217.51
8.1.10.0040.00417.61
8.1.00.0030.00517.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0030.00317.20
8.0.260.0030.00317.10
8.0.250.0000.00716.91
8.0.240.0030.00316.93
8.0.230.0000.00816.90
8.0.220.0070.00016.93
8.0.210.0070.00016.84
8.0.200.0030.00316.94
8.0.190.0040.00416.98
8.0.180.0040.00416.91
8.0.170.0040.00416.81
8.0.160.0000.00717.02
8.0.150.0040.00416.83
8.0.140.0030.00516.79
8.0.130.0050.00013.32
8.0.120.0000.00816.86
8.0.110.0000.00716.92
8.0.100.0030.00516.88
8.0.90.0000.00716.95
8.0.80.0030.01216.82
8.0.70.0080.00016.93
8.0.60.0040.00416.88
8.0.50.0070.00016.91
8.0.30.0150.00417.23
8.0.20.0100.01217.40
8.0.10.0000.00717.01
8.0.00.0100.01116.71
7.4.330.0030.00315.08
7.4.320.0030.00316.50
7.4.300.0060.00016.44
7.4.290.0070.00016.54
7.4.280.0050.00216.59
7.4.270.0030.00316.48
7.4.260.0040.00416.59
7.4.250.0040.00416.61
7.4.240.0040.00416.59
7.4.230.0000.00716.59
7.4.220.0060.01116.60
7.4.210.0060.00916.55
7.4.200.0030.00316.64
7.4.160.0070.01016.64
7.4.150.0080.00817.40
7.4.140.0120.01017.86
7.4.130.0090.00816.46
7.4.120.0100.00716.49
7.4.110.0140.00716.57
7.4.100.0080.00816.46
7.4.90.0120.00616.43
7.4.80.0100.01219.39
7.4.70.0110.00716.58
7.4.60.0120.00316.63
7.4.50.0000.00816.58
7.4.40.0070.01416.58
7.4.30.0130.00316.39
7.4.00.0060.00714.97
7.3.330.0030.00313.18
7.3.320.0030.00313.37
7.3.310.0000.00716.37
7.3.300.0030.00316.35
7.3.290.0070.00716.31
7.3.280.0090.00716.36
7.3.270.0120.00417.40
7.3.260.0100.00716.43
7.3.250.0060.01116.22
7.3.240.0080.01116.52
7.3.230.0080.01216.39
7.3.210.0100.00716.32
7.3.200.0100.00716.52
7.3.190.0100.01216.28
7.3.180.0100.00616.45
7.3.170.0110.01216.30
7.3.160.0100.00616.43
7.2.330.0100.00716.60
7.2.320.0070.01616.37
7.2.310.0120.00616.66
7.2.300.0060.01116.42
7.2.290.0060.01216.69
7.2.60.0110.00316.72
7.2.00.0060.00919.39
7.1.200.0040.00715.83
7.1.100.0060.00617.70
7.1.70.0060.00317.10
7.1.60.0060.00919.50
7.1.50.0070.01316.59
7.1.00.0100.07022.41
7.0.200.0280.00016.45
7.0.60.0200.06019.75
7.0.50.0070.08017.89
7.0.40.0130.04320.13
7.0.30.0370.06720.34
7.0.20.0230.07720.12
7.0.10.0030.05320.12
7.0.00.0100.05320.24
5.6.280.0000.03721.15
5.6.210.0030.08320.56
5.6.200.0070.05018.29
5.6.190.0100.08320.60
5.6.180.0130.05720.50
5.6.170.0130.04320.46
5.6.160.0070.06020.46
5.6.150.0070.08018.23
5.6.140.0070.05318.21
5.6.130.0070.08018.19
5.6.120.0000.09321.00
5.6.110.0130.07721.15
5.6.100.0130.08021.01
5.6.90.0100.04321.01
5.6.80.0070.08020.37
5.5.350.0030.08020.42
5.5.340.0000.06317.99
5.5.330.0030.04320.25
5.5.320.0200.04320.35
5.5.310.0200.04020.32
5.5.300.0070.04018.02
5.5.290.0070.07718.08
5.5.280.0070.04020.80
5.5.270.0070.06320.87
5.5.260.0030.08320.97
5.5.250.0070.09020.69
5.5.240.0230.08020.15
5.4.450.0730.05719.58
5.4.440.0730.06019.32
5.4.430.0900.07319.57
5.4.420.0770.06319.46
5.4.410.0900.06719.31
5.4.400.0930.07018.84
5.4.390.0270.06718.87
5.4.380.0270.04319.16
5.4.370.0030.05719.12
5.4.360.0470.07719.16
5.4.350.0900.07319.15
5.4.340.0870.06718.88
5.4.320.0530.05719.04
5.4.310.0200.05719.30
5.4.300.0170.08319.11
5.4.290.0670.07019.37
5.4.280.0330.05719.22
5.4.270.0100.05718.97
5.4.260.0230.04718.82
5.4.250.0500.06019.27
5.4.240.0530.05318.82
5.4.230.0730.07319.13
5.4.220.0670.07319.24
5.4.210.0670.05319.11
5.4.200.0630.06719.29
5.4.190.0770.06319.27
5.4.180.0870.05019.25
5.4.170.0770.05319.13
5.4.160.0870.04719.10
5.4.150.0770.06018.84
5.4.140.0600.07316.50
5.4.130.0630.05716.56
5.4.120.0970.03016.56
5.4.110.0800.05716.59
5.4.100.0730.07016.51
5.4.90.0670.05016.52
5.4.80.0870.05716.58
5.4.70.0030.03716.57
5.4.60.0070.05716.38
5.4.50.0000.06716.43
5.4.40.0100.04316.38
5.4.30.0230.03716.16
5.4.20.0230.03716.55

preferences:
56.46 ms | 400 KiB | 5 Q