3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this = 5; class test{ public function test(){ return $this; } } $test_var = new test(); echo $test_var->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)
5.4.310.2870.04019.07
5.4.300.2770.03319.05
5.4.290.2870.03019.09
5.4.280.2700.03719.13
5.4.270.2730.04019.08
5.4.260.2730.03719.16
5.4.250.2270.04018.88
5.4.240.2630.04019.15
5.4.230.2900.04718.77
5.4.220.3030.03018.77
5.4.210.2970.04019.21
5.4.200.2900.03718.88
5.4.190.2930.04019.24
5.4.180.2970.04719.19
5.4.170.2800.03719.23
5.4.160.2800.03718.91
5.4.150.2900.03318.91
5.4.140.2700.04016.32
5.4.130.2670.03716.27
5.4.120.2570.04016.33
5.4.110.2830.03716.50
5.4.100.2770.03716.35
5.4.90.2830.03716.18
5.4.80.2000.03716.38
5.4.70.2630.03016.46
5.4.60.2870.03716.20
5.4.50.2830.04016.44
5.4.40.3030.04016.36
5.4.30.2900.03716.48
5.4.20.2830.04016.40
5.4.10.2730.03716.38
5.4.00.2900.03315.81
5.3.290.2570.03714.76
5.3.280.2570.04714.45
5.3.270.2770.04014.65
5.3.260.2970.03714.59
5.3.250.2770.04014.49
5.3.240.2770.03714.65
5.3.230.2800.04314.64
5.3.220.2830.04014.44
5.3.210.2600.04014.41
5.3.200.2470.04014.41
5.3.190.2900.03014.41
5.3.180.2830.04014.65
5.3.170.0000.04014.39
5.3.160.0030.04014.40
5.3.150.0930.03314.51
5.3.140.2400.03314.51
5.3.130.2430.03714.39
5.3.120.2330.03714.39
5.3.110.2230.04014.58
5.3.100.2600.03713.91
5.3.90.2270.03313.93
5.3.80.2630.03714.12
5.3.70.2800.03013.95
5.3.60.2400.03713.84
5.3.50.2600.03713.95
5.3.40.2700.03713.88
5.3.30.2430.04013.86
5.3.20.2730.03313.53
5.3.10.2730.03713.61
5.3.00.3370.04013.58
5.2.170.2070.03011.03
5.2.160.2230.02711.05
5.2.150.1530.02710.98
5.2.140.2170.03011.07
5.2.130.2070.03010.98
5.2.120.2600.02311.00
5.2.110.0270.05711.16
5.2.100.0000.03310.94
5.2.90.0000.04310.95
5.2.80.0070.03010.95
5.2.70.1470.02711.11
5.2.60.2170.02710.95
5.2.50.2330.03711.05
5.2.40.1830.03311.00
5.2.30.1970.03010.81
5.2.20.1730.03311.04
5.2.10.1730.02710.83
5.2.00.1870.03010.73
5.1.60.2030.0209.91
5.1.50.2200.02710.07
5.1.40.1630.03310.05
5.1.30.1730.02310.24
5.1.20.1670.03010.32
5.1.10.2370.0239.93
5.1.00.2430.02310.08
5.0.50.1370.0238.52
5.0.40.1070.0208.41
5.0.30.1000.0308.14
5.0.20.1300.0308.34
5.0.10.1070.0178.22
5.0.00.1330.0408.27
4.4.90.1030.0176.73
4.4.80.1370.0176.73
4.4.70.1070.0136.73
4.4.60.1270.0206.73
4.4.50.1130.0176.73
4.4.40.1330.0236.73
4.4.30.1100.0176.73
4.4.20.0930.0136.73
4.4.10.0900.0176.73
4.4.00.1000.0236.73
4.3.110.0900.0176.73
4.3.100.0900.0176.73
4.3.90.1170.0176.73
4.3.80.1130.0306.73
4.3.70.1070.0206.73
4.3.60.1100.0206.73
4.3.50.1000.0176.73
4.3.40.0870.0236.73
4.3.30.0430.0176.73
4.3.20.0430.0176.73
4.3.10.0470.0176.73
4.3.00.0530.0136.73

preferences:
139.29 ms | 1394 KiB | 7 Q