3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello{ public static function outPut(){ return "hello world"; } public static function contentSecond(){ return "Output from second function easily ".self::contentSecond(); } } Hello::contentSecond();

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.0750.02375.41
8.3.50.0300.02077.29
8.3.40.0480.00744.71
8.3.30.0420.00744.54
8.3.20.0200.00345.18
8.3.10.0110.01148.56
8.3.00.0160.00646.51
8.2.180.0810.01972.50
8.2.170.0330.01344.81
8.2.160.0290.01346.82
8.2.150.0130.01045.07
8.2.140.0250.00046.52
8.2.130.0200.01043.66
8.2.120.0100.01345.37
8.2.110.0170.00746.37
8.2.100.0340.00643.65
8.2.90.0190.00443.75
8.2.80.0130.01343.38
8.2.70.0100.01043.68
8.2.60.0140.00743.91
8.2.50.0180.00643.50
8.2.40.0160.00345.33
8.2.30.0130.00745.17
8.2.20.0210.00743.73
8.2.10.0210.00743.73
8.2.00.0170.01043.36
8.1.280.0740.01773.39
8.1.270.0130.01046.31
8.1.260.0100.00749.55
8.1.250.0110.01148.05
8.1.240.0140.01047.79
8.1.230.0210.01448.08
8.1.220.0190.00443.52
8.1.210.0100.01343.10
8.1.200.0170.00743.10
8.1.190.0110.01143.11
8.1.180.0180.00643.29
8.1.170.0090.01244.50
8.1.160.0200.00044.79
8.1.150.0100.01044.68
8.1.140.0100.01048.21
8.1.130.0100.01346.43
8.1.120.0200.00443.29
8.1.110.0210.00343.36
8.1.100.0200.00343.25
8.1.90.0200.00343.43
8.1.80.0140.01043.27
8.1.70.0110.01443.26
8.1.60.0180.00743.51
8.1.50.0200.00743.50
8.1.40.0210.00343.45
8.1.30.0180.01843.59
8.1.20.0150.00943.48
8.1.10.0250.01373.07
8.1.00.0290.02373.11
8.0.300.0230.02072.60
8.0.290.0290.01372.38
8.0.280.0100.02274.04
8.0.270.0340.01072.70
8.0.260.0390.00773.89
8.0.250.0240.02072.54
8.0.240.0280.01472.40
8.0.230.0300.01372.40
8.0.220.0260.01672.28
8.0.210.0250.00772.42
8.0.200.0270.01072.37
8.0.190.0170.01772.33
8.0.180.0320.01072.38
8.0.170.0260.01072.26
8.0.160.0340.02472.45
8.0.150.0280.01672.36
8.0.140.0230.01372.32
8.0.130.0410.031121.75
8.0.120.0230.01672.18
8.0.110.0260.00772.17
8.0.100.0150.01972.39
8.0.90.0250.00972.14
8.0.80.0640.04272.29
8.0.70.0280.00772.34
8.0.60.0230.01672.25
8.0.50.0230.01672.14
8.0.30.0550.03272.61
8.0.20.0580.03272.56
8.0.10.0200.01372.29
8.0.00.0630.04272.14
7.4.330.0270.01369.30
7.4.320.0210.01472.04
7.4.300.0190.01372.18
7.4.290.0310.01471.99
7.4.280.0460.01772.00
7.4.270.0360.00772.01
7.4.260.0300.01371.96
7.4.250.0350.00072.05
7.4.240.0170.01772.01
7.4.230.0250.00771.95
7.4.220.0230.01371.91
7.4.210.0450.03671.99
7.4.200.0130.01771.99
7.4.160.0560.02671.97
7.4.140.0640.03271.96
7.4.130.0460.03672.18
7.4.120.0610.03171.98
7.4.110.0450.04272.00
7.4.100.0550.03272.09
7.4.90.0500.03771.90
7.4.80.0580.03871.88
7.4.70.0460.03971.86
7.4.60.0560.03371.72
7.4.50.0280.02472.00
7.4.40.0510.03571.89
7.3.330.0580.014121.69
7.3.320.0490.016121.58
7.3.310.0190.02371.72
7.3.300.0170.01771.75
7.3.290.0130.02071.69
7.3.280.0490.02971.76
7.3.260.0650.04071.80
7.3.240.0580.03071.72
7.3.230.0620.02372.07
7.3.210.0620.02771.82
7.3.200.0470.04671.96
7.3.190.0590.03271.80
7.3.180.0520.03371.73
7.3.170.0740.02871.79
7.3.160.0660.02671.95
7.2.330.0530.03572.00
7.2.320.0590.03272.09
7.2.310.0430.04372.05
7.2.300.0440.04472.14
7.2.290.0680.02172.24
7.2.112.2920.01668.40
7.2.100.8780.04570.11
7.2.90.8730.01669.95
7.2.82.1260.02070.14
7.2.71.4740.04270.36
7.2.60.9350.03570.34
7.2.50.5010.01770.43
7.2.41.0620.01670.25
7.2.31.5690.03870.33
7.2.21.6410.02370.32
7.2.12.3740.01366.78
7.2.01.4930.03270.80
7.1.232.3700.01757.23
7.1.222.3430.02341.45
7.1.210.6730.02869.39
7.1.200.7850.03869.10
7.1.190.9680.02669.43
7.1.180.9120.02969.26
7.1.170.4510.02069.14
7.1.161.6440.02369.27
7.1.151.8010.02069.20
7.1.141.8180.02369.30
7.1.131.7640.01369.81
7.1.120.7600.01969.37
7.1.110.7930.01969.76
7.1.101.4480.02869.32
7.1.91.7420.02069.77
7.1.82.3610.02363.95
5.6.380.0530.02578.84

preferences:
74.67 ms | 400 KiB | 5 Q