3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title></title> </head> <body> <p> <?php class Person{ public static function say(){ echo "Here are my thoughts!"; } class Blogger extends Person { const cats = 50; } } echo Blogger::say(); echo Blogger::cats; ?> </p> </body> </html>

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.6.80.0170.05320.50
5.6.70.4330.04320.38
5.5.240.0270.07020.26
5.4.400.0100.06318.76
5.4.390.0230.05318.77
5.4.380.1400.06318.81
5.4.370.0300.04718.80
5.4.360.0270.04718.80
5.4.350.1170.06018.76
5.4.340.1070.05018.82
5.4.320.0270.05318.76
5.4.310.1070.05718.53
5.4.300.1430.06018.77
5.4.290.1430.07318.75
5.4.280.1570.06318.50
5.4.270.1430.06718.75
5.4.260.1330.07018.80
5.4.250.0330.06018.59
5.4.240.1200.06318.78
5.4.230.1430.06318.55
5.4.220.0300.06318.73
5.4.210.1430.07018.55
5.4.200.1470.06716.55
5.4.190.0300.06018.77
5.4.180.1370.05318.51
5.4.170.0200.06318.79
5.4.160.0930.05718.57
5.4.150.0200.06018.73
5.4.140.1000.05316.30
5.4.130.0270.06316.22
5.4.120.0830.05716.28
5.4.110.0130.05316.23
5.4.100.0930.05716.25
5.4.90.0230.06016.28
5.4.80.1000.05016.27
5.4.70.0170.05716.31
5.4.60.1000.05316.41
5.4.50.0200.04716.18
5.4.40.0900.05716.20
5.4.30.0270.04316.25
5.4.20.1300.06716.41
5.4.10.0230.06316.25
5.4.00.1270.05715.91
5.3.290.0200.07014.88
5.3.280.0230.07314.80
5.3.270.0100.06714.71
5.3.260.1000.06014.80
5.3.250.0170.06314.63
5.3.240.0170.06314.63
5.3.230.1070.06314.60
5.3.220.0330.04014.60
5.3.210.1130.05314.56
5.3.200.0230.05014.59
5.3.190.1030.04714.77
5.3.180.0370.04714.78
5.3.170.0970.06314.70
5.3.160.0230.04314.58
5.3.150.0930.05714.58
5.3.140.0270.04714.68
5.3.130.1030.06014.54
5.3.120.0170.05714.59
5.3.110.0270.06314.58
5.3.100.1000.05714.14
5.3.90.0170.05714.22
5.3.80.1000.05314.09
5.3.70.0270.05714.14
5.3.60.0200.06314.13
5.3.50.1600.06014.00
5.3.40.0200.05314.01
5.3.30.0900.04714.01
5.3.20.0170.05013.86
5.3.10.1100.06013.71
5.3.00.0100.06013.67
5.2.170.0200.04311.25
5.2.160.0170.04011.17
5.2.150.1070.04011.12
5.2.140.0030.05711.16
5.2.130.1500.04011.20
5.2.120.0130.04011.13
5.2.110.0200.03311.21
5.2.100.0870.04711.32
5.2.90.0170.04311.12
5.2.80.0900.04711.30
5.2.70.0070.05011.23
5.2.60.0200.04311.07
5.2.50.1070.04711.07
5.2.40.0100.05311.22
5.2.30.0100.04711.01
5.2.20.0200.03311.04
5.2.10.1100.04710.89
5.2.00.0200.04010.73
5.1.60.0900.03310.09
5.1.50.0200.03310.17
5.1.40.0030.04310.01
5.1.30.1070.03310.28
5.1.20.0070.04310.39
5.1.10.0130.03710.17
5.1.00.1000.03710.06
5.0.50.0100.0308.64
5.0.40.0100.0278.45
5.0.30.0100.0408.32
5.0.20.0130.0238.32
5.0.10.0070.0308.30
5.0.00.0930.0438.36
4.4.90.0030.0235.89
4.4.80.0130.0175.88
4.4.70.0270.0135.95
4.4.60.0070.0305.95
4.4.50.0070.0236.01
4.4.40.0130.0306.01
4.4.30.0100.0205.87
4.4.20.0030.0275.96
4.4.10.0000.0276.04
4.4.00.0000.0436.00
4.3.110.0100.0235.90
4.3.100.0070.0275.80
4.3.90.0030.0305.84
4.3.80.0070.0335.91
4.3.70.0070.0205.78
4.3.60.0200.0275.80
4.3.50.0030.0275.79
4.3.40.0070.0335.78
4.3.30.0070.0204.63
4.3.20.0030.0234.57
4.3.10.0030.0234.52
4.3.00.0100.0136.75

preferences:
138.7 ms | 1394 KiB | 7 Q