3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test() { if (isset($this)) { echo "Mam this!\n"; } else { echo "NEmam this!\n"; } } } $test = new Test; $test->test(); $test::test();

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.40.0090.00618.82
8.3.30.0150.00018.76
8.3.20.0040.00419.15
8.3.10.0080.00021.69
8.3.00.0040.00419.69
8.2.170.0100.00722.96
8.2.160.0130.00020.52
8.2.150.0060.00924.18
8.2.140.0040.00424.66
8.2.130.0050.00321.05
8.2.120.0070.00026.35
8.2.110.0000.01121.02
8.2.100.0080.00417.91
8.2.90.0050.00318.22
8.2.80.0040.00418.32
8.2.70.0080.00018.04
8.2.60.0040.00417.50
8.2.50.0080.00018.10
8.2.40.0070.00020.59
8.2.30.0050.00319.14
8.2.20.0040.00417.91
8.2.10.0000.00718.00
8.2.00.0040.00417.48
8.1.270.0040.00423.84
8.1.260.0100.01026.35
8.1.250.0030.00628.09
8.1.240.0060.00322.47
8.1.230.0040.00822.75
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00917.23
8.1.180.0030.00618.10
8.1.170.0060.00320.69
8.1.160.0000.00718.87
8.1.150.0040.00420.25
8.1.140.0030.00319.56
8.1.130.0000.00818.88
8.1.120.0030.00317.38
8.1.110.0030.00317.26
8.1.100.0060.00317.44
8.1.90.0030.00517.38
8.1.80.0040.00417.34
8.1.70.0030.00317.27
8.1.60.0030.00617.55
8.1.50.0000.00717.51
8.1.40.0030.00517.52
8.1.30.0000.00817.64
8.1.20.0030.00617.49
8.1.10.0040.00417.54
8.1.00.0040.00417.38
8.0.300.0000.00719.77
8.0.290.0050.00316.75
8.0.280.0030.00318.34
8.0.270.0030.00318.07
8.0.260.0060.00017.12
8.0.250.0030.00316.94
8.0.240.0060.00316.84
8.0.230.0030.00316.98
8.0.220.0030.00316.78
8.0.210.0060.00016.86
8.0.200.0060.00016.81
8.0.190.0040.00416.78
8.0.180.0040.00416.95
8.0.170.0040.00416.93
8.0.160.0000.00716.82
8.0.150.0000.00716.86
8.0.140.0030.00316.78
8.0.130.0030.00313.33
8.0.120.0040.00416.76
8.0.110.0070.00016.83
8.0.100.0030.00616.82
8.0.90.0050.00216.77
8.0.80.0080.00816.86
8.0.70.0070.00016.84
8.0.60.0050.00316.71
8.0.50.0080.00016.69
8.0.30.0140.00517.01
8.0.20.0090.01017.40
8.0.10.0040.00417.07
8.0.00.0150.00816.73
7.4.330.0060.00015.55
7.4.320.0000.00816.44
7.4.300.0000.00816.60
7.4.290.0070.00016.57
7.4.280.0060.00316.54
7.4.270.0030.00316.63
7.4.260.0060.00316.50
7.4.250.0000.00716.59
7.4.240.0000.00716.59
7.4.230.0030.00316.52
7.4.220.0100.01716.55
7.4.210.0100.01016.44
7.4.200.0000.00716.52
7.4.160.0090.00816.57
7.4.150.0130.01017.40
7.4.140.0130.00717.86
7.4.130.0120.00716.48
7.4.120.0060.01116.61
7.4.110.0140.00416.65
7.4.100.0070.01016.64
7.4.90.0030.01316.68
7.4.80.0140.00819.39
7.4.70.0080.00916.57
7.4.60.0060.01016.37
7.4.50.0100.00716.32
7.4.40.0070.01316.71
7.4.30.0080.00816.56
7.4.00.0140.00315.00
7.3.330.0030.00313.27
7.3.320.0060.00013.36
7.3.310.0040.00416.31
7.3.300.0070.00016.34
7.3.290.0070.00916.40
7.3.280.0060.01116.40
7.3.270.0050.01117.40
7.3.260.0140.00716.46
7.3.250.0120.00616.52
7.3.240.0090.01016.45
7.3.230.0050.01116.39
7.3.210.0100.00716.62
7.3.200.0090.01216.70
7.3.190.0110.00716.45
7.3.180.0000.01716.17
7.3.170.0080.01216.48
7.3.160.0130.01016.38
7.3.10.0110.00716.35
7.3.00.0120.00416.36
7.2.330.0110.01116.61
7.2.320.0060.01316.73
7.2.310.0030.01316.32
7.2.300.0120.00616.56
7.2.290.0040.01216.79
7.2.130.0130.00416.38
7.2.120.0160.00416.42
7.2.110.0080.00816.64
7.2.100.0190.01116.78
7.2.90.0130.01016.84
7.2.80.0130.00616.61
7.2.70.0040.01216.60
7.2.60.0160.00516.78
7.2.50.0090.00616.75
7.2.40.0170.00016.66
7.2.30.0100.01016.69
7.2.20.0030.01316.59
7.2.10.0100.00716.59
7.2.00.0120.00918.01
7.1.250.0140.00615.30
7.1.200.0070.00415.80
7.1.70.0000.00917.22
7.1.60.0030.00717.18
7.1.50.0150.00734.76
7.1.00.2470.05320.77
7.0.200.0070.01016.80
7.0.140.0570.05020.14
7.0.130.0530.05020.12
7.0.120.0500.05720.38
7.0.110.0500.05320.19
7.0.100.0430.06020.31
7.0.90.0570.05320.16
7.0.80.0570.05320.20
7.0.70.0730.08320.15
7.0.60.0570.04720.23
7.0.50.0600.05720.19
7.0.40.0600.05720.23
7.0.30.0500.06020.19
7.0.20.0670.04320.33
7.0.10.0630.05020.17
7.0.00.0570.05320.35
5.6.290.0100.06020.89
5.6.280.0130.07321.09
5.6.270.0100.06021.14
5.6.260.0030.06720.91
5.6.250.0130.05020.96
5.6.240.0100.05720.84
5.6.230.0100.05720.96
5.6.220.0130.07320.72
5.6.210.0130.06320.81
5.6.200.0070.06021.00
5.6.190.0130.05320.78
5.6.180.0070.06020.79
5.6.170.0100.05720.88
5.6.160.0100.06020.74
5.6.150.0070.06021.07
5.6.140.0100.05720.77
5.6.130.0170.06021.02
5.6.120.0030.07721.07
5.6.110.0030.07321.05
5.6.100.0070.06321.04
5.6.90.0130.06020.86
5.6.80.0130.05020.44
5.6.70.0130.05020.22
5.6.60.0130.05320.20
5.6.50.0100.05320.27
5.6.40.0100.05720.44
5.6.30.0100.07320.45
5.6.20.0070.05720.45
5.6.10.0070.05320.23
5.6.00.0230.05320.16

preferences:
54.89 ms | 400 KiB | 5 Q