3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function getme(){ return 10; } } $bar= new $foo(); var_dump(empty($bar->getme()));

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.00716.63
8.3.50.0040.01116.22
8.3.40.0030.01018.84
8.3.30.0140.00018.49
8.3.20.0000.00720.34
8.3.10.0000.00823.61
8.3.00.0070.00023.66
8.2.180.0040.01116.38
8.2.170.0150.00022.96
8.2.160.0150.00020.32
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0070.00318.09
8.2.120.0000.00726.35
8.2.110.0030.00622.25
8.2.100.0090.00317.93
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00717.90
8.2.50.0000.00918.07
8.2.40.0080.00022.25
8.2.30.0040.00419.48
8.2.20.0050.00317.55
8.2.10.0050.00317.98
8.2.00.0050.00318.09
8.1.280.0090.00625.92
8.1.270.0000.00823.82
8.1.260.0080.00328.09
8.1.250.0050.00328.09
8.1.240.0060.00322.17
8.1.230.0080.00419.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0000.00918.38
8.1.160.0040.00420.61
8.1.150.0000.00718.77
8.1.140.0080.00019.36
8.1.130.0000.00717.57
8.1.120.0000.00717.34
8.1.110.0000.00817.32
8.1.100.0080.00017.34
8.1.90.0040.00417.32
8.1.80.0040.00417.21
8.1.70.0030.00317.20
8.1.60.0000.00717.44
8.1.50.0030.00717.45
8.1.40.0000.00817.43
8.1.30.0040.00417.63
8.1.20.0000.00817.56
8.1.10.0000.00717.53
8.1.00.0080.00017.30
8.0.300.0050.00318.77
8.0.290.0020.00516.75
8.0.280.0040.00418.38
8.0.270.0000.00817.11
8.0.260.0030.00317.12
8.0.250.0100.00016.95
8.0.240.0000.00616.85
8.0.230.0000.00716.89
8.0.220.0110.00016.94
8.0.210.0080.00016.86
8.0.200.0000.00716.99
8.0.190.0070.00016.89
8.0.180.0040.00416.89
8.0.170.0040.00416.84
8.0.160.0050.00316.96
8.0.150.0000.00716.73
8.0.140.0000.00716.88
8.0.130.0060.00013.30
8.0.120.0030.00616.90
8.0.110.0040.00416.85
8.0.100.0050.00216.69
8.0.90.0000.00816.75
8.0.80.0060.00916.90
8.0.70.0030.00316.88
8.0.60.0000.00716.91
8.0.50.0040.00416.76
8.0.30.0090.00917.14
8.0.20.0120.00617.40
8.0.10.0040.00417.01
8.0.00.0120.00516.64
7.4.330.0050.00016.79
7.4.320.0070.00016.47
7.4.300.0030.00316.58
7.4.290.0050.00516.37
7.4.280.0060.00316.41
7.4.270.0000.00716.43
7.4.260.0040.00416.44
7.4.250.0030.00516.43
7.4.240.0040.00416.45
7.4.230.0030.00316.34
7.4.220.0100.01016.57
7.4.210.0060.01016.65
7.4.200.0030.00316.49
7.4.160.0110.01116.34
7.4.150.0120.00617.40
7.4.140.0100.01117.86
7.4.130.0130.00816.60
7.4.120.0060.01416.37
7.4.110.0140.00316.59
7.4.100.0060.01216.53
7.4.90.0110.00716.38
7.4.80.0110.00719.39
7.4.70.0030.01316.36
7.4.60.0090.00916.61
7.4.50.0030.01416.46
7.4.40.0090.00916.54
7.4.30.0000.01716.63
7.4.00.0060.00814.61
7.3.330.0020.00213.34
7.3.320.0060.00013.22
7.3.310.0030.00516.34
7.3.300.0000.00616.37
7.3.290.0060.01016.40
7.3.280.0070.01216.38
7.3.270.0100.00617.40
7.3.260.0160.00316.62
7.3.250.0080.01116.50
7.3.240.0090.00816.54
7.3.230.0100.00716.57
7.3.210.0130.00316.52
7.3.200.0110.00719.39
7.3.190.0040.02016.36
7.3.180.0110.01116.59
7.3.170.0070.01116.33
7.3.160.0000.01516.30
7.2.330.0100.00716.59
7.2.320.0190.00416.51
7.2.310.0060.01316.50
7.2.300.0100.00716.45
7.2.290.0060.01016.63
7.2.60.0030.01016.88
7.2.00.0100.00319.41
7.1.200.0070.01415.08
7.1.100.0000.01218.25
7.1.70.0000.01516.97
7.1.60.0060.00919.30
7.1.50.0060.01216.57
7.1.00.0070.07022.31
7.0.200.0050.00516.76
7.0.60.0200.06721.81
7.0.50.0170.07317.86
7.0.40.0200.07320.04
7.0.30.0300.07320.23
7.0.20.0300.06720.15
7.0.10.0070.06320.24
7.0.00.0030.05020.10
5.6.280.0000.03321.15
5.6.210.0030.04020.57
5.6.200.0030.07718.20
5.6.190.0070.04020.77
5.6.180.0370.05020.45
5.6.170.0230.04320.54
5.6.160.0200.07320.54
5.6.150.0070.08318.27
5.6.140.0130.05718.23
5.6.130.0030.04018.17
5.6.120.0130.08021.02
5.6.110.0100.08321.00
5.6.100.0070.08721.09
5.6.90.0100.08721.02
5.6.80.0130.07320.39
5.5.350.0300.06720.46
5.5.340.0000.05717.98
5.5.330.0100.07720.37
5.5.320.0570.04320.32
5.5.310.0230.07720.30
5.5.300.0030.04317.98
5.5.290.0070.08317.96
5.5.280.0170.03720.80
5.5.270.0100.07320.95
5.5.260.0030.04020.86
5.5.250.0130.07720.79
5.5.240.0200.06720.27

preferences:
42.04 ms | 400 KiB | 5 Q