3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function a () { $this = 5; var_dump($this); } } $a = new A(); var_dump($a); $a->a; var_dump($a);

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.350.2970.03718.98
5.4.340.2730.04319.20
5.4.320.3230.04018.85
5.4.310.2830.03719.26
5.4.300.3430.04019.31
5.4.290.3330.04319.08
5.4.280.3070.03318.99
5.4.270.3200.04019.32
5.4.260.3300.04019.23
5.4.250.3370.03319.21
5.4.240.3370.03318.93
5.4.230.3270.03718.94
5.4.220.3700.05019.14
5.4.210.3170.03718.99
5.4.200.2970.03719.09
5.4.190.3400.03319.14
5.4.180.3200.04018.93
5.4.170.3000.03719.21
5.4.160.3100.03319.29
5.4.150.3230.03018.85
5.4.140.3330.03316.36
5.4.130.3170.03316.46
5.4.120.3270.03316.50
5.4.110.3530.03316.52
5.4.100.3270.02716.51
5.4.90.3170.03716.16
5.4.80.3430.03716.39
5.4.70.3000.03316.54
5.4.60.2730.04316.38
5.4.50.3370.03316.53
5.4.40.3300.02716.48
5.4.30.3170.03716.44
5.4.20.3270.03316.42
5.4.10.3500.02316.55
5.4.00.3200.04015.80
5.3.290.3300.03014.88
5.3.280.2930.04014.49
5.3.270.3200.03314.72
5.3.260.3000.03314.62
5.3.250.3270.03714.65
5.3.240.3330.03314.52
5.3.230.3230.03714.57
5.3.220.3270.03714.48
5.3.210.3100.03314.78
5.3.200.3330.03314.46
5.3.190.3230.04314.47
5.3.180.3470.04014.53
5.3.170.3070.03314.48
5.3.160.3230.03314.68
5.3.150.3170.03314.72
5.3.140.3400.04714.55
5.3.130.3500.04014.70
5.3.120.3070.04314.66
5.3.110.2970.03714.46
5.3.100.3270.03714.12
5.3.90.3200.04013.99
5.3.80.3770.03714.10
5.3.70.3900.03013.93
5.3.60.3730.04014.11
5.3.50.3400.03714.02
5.3.40.3430.04014.02
5.3.30.3130.04013.91
5.3.20.3030.03713.60
5.3.10.3270.03313.73
5.3.00.3030.03013.79
5.2.170.2770.03011.53
5.2.160.2830.03311.53
5.2.150.2230.03011.53
5.2.140.2530.02711.53
5.2.130.2670.03011.53
5.2.120.2800.02711.53
5.2.110.2700.02311.53
5.2.100.2530.02711.53
5.2.90.2470.02711.53
5.2.80.2430.03011.53
5.2.70.2600.02711.53
5.2.60.3200.02711.53
5.2.50.3370.02711.53
5.2.40.2530.03011.53
5.2.30.2530.02711.53
5.2.20.2670.03311.53
5.2.10.2530.03711.53
5.2.00.2270.03311.53
5.1.60.2330.03011.53
5.1.50.2230.02011.53
5.1.40.2330.03311.53
5.1.30.1900.02711.53
5.1.20.2330.02711.53
5.1.10.1930.03011.53
5.1.00.2270.02311.53
5.0.50.1000.02311.53
5.0.40.1000.02011.53
5.0.30.1000.03311.53
5.0.20.1000.02011.53
5.0.10.1000.01711.53
5.0.00.0970.03311.53
4.4.90.1370.02011.53
4.4.80.1200.01711.53
4.4.70.1500.01711.53
4.4.60.1300.01011.53
4.4.50.1730.03011.53
4.4.40.1000.02311.53
4.4.30.1130.02011.53
4.4.20.1070.01711.53
4.4.10.1200.01711.53
4.4.00.1170.03011.53
4.3.110.1000.01711.53
4.3.100.1070.01011.53
4.3.90.1030.01011.53
4.3.80.1100.02011.53
4.3.70.0970.01711.53
4.3.60.0830.01011.53
4.3.50.1070.01011.53
4.3.40.1030.02011.53
4.3.30.0500.01311.53
4.3.20.0570.02011.53
4.3.10.0470.01711.53
4.3.00.0500.01311.53

preferences:
146.2 ms | 1398 KiB | 7 Q