3v4l.org

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

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.0660.02372.38
8.3.50.0730.02172.25
8.3.40.0460.01044.59
8.3.30.0190.02244.63
8.3.20.0200.00346.24
8.3.10.0140.00350.36
8.3.00.0110.00748.73
8.2.180.0630.01373.02
8.2.170.0150.02544.84
8.2.160.0460.00746.19
8.2.150.0140.01044.71
8.2.140.0140.00049.80
8.2.130.0120.00646.05
8.2.120.0200.01043.50
8.2.110.0190.00645.45
8.2.100.0210.01143.63
8.2.90.0140.00745.22
8.2.80.0140.00743.50
8.2.70.0100.01043.38
8.2.60.0070.01443.93
8.2.50.0070.01443.50
8.2.40.0130.00745.64
8.2.30.0100.01044.70
8.2.20.0140.00743.52
8.2.10.0160.00343.78
8.2.00.0100.01043.91
8.1.280.0770.01771.75
8.1.270.0140.01146.56
8.1.260.0170.00746.29
8.1.250.0200.00348.09
8.1.240.0130.00351.40
8.1.230.0230.01043.36
8.1.220.0070.01443.64
8.1.210.0100.01043.23
8.1.200.0150.00843.22
8.1.190.0120.00943.13
8.1.180.0040.01843.39
8.1.170.0060.01544.54
8.1.160.0090.01247.88
8.1.150.0070.01444.83
8.1.140.0090.01243.30
8.1.130.0140.00743.55
8.1.120.0070.01443.37
8.1.110.0100.01043.28
8.1.100.0030.01743.46
8.1.90.0060.01343.42
8.1.80.0140.00743.50
8.1.70.0100.01043.45
8.1.60.0180.00343.56
8.1.50.0150.00843.63
8.1.40.0060.01643.59
8.1.30.0070.01443.69
8.1.20.0160.00643.55
8.1.10.0210.01773.28
8.1.00.0270.01073.09
8.0.300.0250.01072.66
8.0.290.0240.01072.38
8.0.280.0250.01173.97
8.0.270.0260.01072.71
8.0.260.0220.01072.66
8.0.250.0240.01072.47
8.0.240.0250.00972.43
8.0.230.0150.01872.45
8.0.220.0140.02072.31
8.0.210.0130.02072.36
8.0.200.0240.01072.44
8.0.190.0260.01072.44
8.0.180.0220.01672.45
8.0.170.0240.01472.41
8.0.160.0240.01372.41
8.0.150.0260.02072.29
8.0.140.0500.01372.35
8.0.130.0840.020121.70
8.0.120.0200.01672.40
8.0.110.0130.02072.24
8.0.100.0170.02072.21
8.0.90.0160.03072.45
8.0.80.0410.03472.30
8.0.70.0180.01872.38
8.0.60.0310.00672.39
8.0.50.0330.00372.34
8.0.30.0530.03272.70
8.0.20.0630.03672.53
8.0.10.0200.01772.38
8.0.00.0540.03372.33
7.4.330.0170.01371.16
7.4.320.0130.02072.03
7.4.300.0200.01472.04
7.4.290.0200.01772.15
7.4.280.0200.01772.14
7.4.270.0180.01872.03
7.4.260.0500.00771.86
7.4.250.0240.02171.92
7.4.240.0180.01872.04
7.4.230.0260.02072.04
7.4.220.0750.07572.13
7.4.210.0430.03672.14
7.4.200.0130.01971.81
7.4.160.0550.02671.98
7.4.150.0550.03572.01
7.4.140.0810.03072.11
7.4.130.0480.04572.04
7.4.120.0620.03971.98
7.4.110.0790.04372.16
7.4.100.0640.03571.96
7.4.90.0670.04172.11
7.4.80.0790.04171.88
7.4.70.0680.02471.96
7.4.60.0520.04271.89
7.4.50.0110.01571.80
7.4.40.0840.02972.04
7.4.30.0700.02371.95
7.4.10.0420.03271.77
7.4.00.0370.02571.00
7.3.330.0440.020121.59
7.3.320.0400.030121.70
7.3.310.0280.01771.61
7.3.300.0210.02171.60
7.3.290.0550.04371.75
7.3.280.0490.04171.77
7.3.270.0570.04071.77
7.3.260.0710.01671.96
7.3.250.0540.04271.71
7.3.240.0690.02371.72
7.3.230.0570.03071.91
7.3.210.0610.03271.91
7.3.200.0730.02171.90
7.3.190.0450.04572.08
7.3.180.0550.03971.83
7.3.170.0440.06071.96
7.3.160.0720.05171.82
7.3.130.0390.03671.86
7.3.120.0390.03371.89
7.3.110.0350.03971.90
7.3.100.0340.02771.90
7.3.90.0320.03571.63
7.3.80.0260.01871.68
7.3.70.0470.00771.61
7.3.60.0460.02371.74
7.3.50.0280.01971.97
7.3.40.0290.01971.75
7.3.30.0190.02971.69
7.3.20.0170.02079.92
7.3.10.0070.02379.70
7.3.00.0210.02179.94
7.2.330.0560.03371.84
7.2.320.0620.02971.99
7.2.310.0720.01771.91
7.2.300.0650.02372.09
7.2.290.0550.05271.84
7.2.260.0290.02971.86
7.2.250.0300.03071.70
7.2.240.0260.04971.96
7.2.230.0390.02972.05
7.2.220.0280.03871.97
7.2.210.0320.02971.80
7.2.200.0370.03771.83
7.2.190.0200.03471.83
7.2.180.0310.01772.02
7.2.170.0230.02972.00
7.2.160.0330.02772.02
7.2.150.0260.01880.46
7.2.140.0140.02880.25
7.2.130.0210.01480.14
7.2.120.0250.01480.11
7.2.110.0130.02380.07
7.2.100.0200.02380.21
7.2.90.0290.01080.26
7.2.80.0200.02380.10
7.2.70.0140.01480.12
7.2.60.0660.01879.47
7.2.50.0170.01780.29
7.2.40.0140.02080.27
7.2.30.0070.02480.39
7.2.20.0070.02680.18
7.2.10.0170.02780.36
7.2.00.3600.02180.63
7.1.330.0170.05179.14
7.1.320.0740.03479.18
7.1.310.0280.03479.36
7.1.300.0100.02679.25
7.1.290.0290.01079.00
7.1.280.0170.03079.08
7.1.270.0630.04378.97
7.1.260.0130.03079.17
7.1.250.0200.02779.23
7.1.240.0110.03279.05
7.1.230.0300.02679.11
7.1.220.0200.02079.25
7.1.210.0130.03379.11
7.1.200.0540.02978.29
7.1.190.0120.03279.09
7.1.180.0160.03279.28
7.1.170.0400.02379.03
7.1.160.0170.03079.02
7.1.150.0230.02679.02
7.1.140.0100.03679.26
7.1.130.0170.04378.83
7.1.120.0200.02079.12
7.1.110.0390.03679.23
7.1.100.5970.03579.16
7.1.90.0070.04178.88
7.1.80.0220.02278.98
7.1.70.0600.02279.12
7.1.60.0150.03478.99
7.1.50.0150.03978.90
7.1.40.0260.02679.11
7.1.30.0070.04179.23
7.1.20.2330.00779.27
7.1.10.0270.03879.24
7.1.00.0210.06381.76
7.0.330.0220.02279.08
7.0.320.0100.03678.96
7.0.310.0170.02778.84
7.0.300.0240.02078.94
7.0.290.0160.02678.68
7.0.280.0200.03378.80
7.0.270.0230.03678.87
7.0.260.0060.03578.86
7.0.250.0130.03078.80
7.0.240.0320.01979.02
7.0.230.0220.02278.89
7.0.220.0090.03178.95
7.0.210.0130.02979.02
7.0.200.2030.02674.56
7.0.190.0090.03478.88
7.0.180.0230.02078.88
7.0.170.0140.02278.91
7.0.160.0140.03278.84
7.0.150.1610.03079.06
7.0.140.0310.03178.77
7.0.130.0340.02879.16
7.0.120.0250.03378.98
7.0.110.0220.03678.94
7.0.100.0200.03878.92
7.0.90.0320.02278.81
7.0.80.0230.03378.78
7.0.70.0260.03278.95
7.0.60.0250.04977.29
7.0.50.0340.06076.22
7.0.40.0200.05317.47
7.0.30.0390.05917.50
7.0.20.0350.05317.47
7.0.10.0180.05417.50
7.0.00.0190.04017.52
5.6.400.0280.03880.73
5.6.390.0530.02680.66
5.6.380.0400.03680.88
5.6.370.0390.02680.41
5.6.360.0170.04780.52
5.6.350.0340.03480.49
5.6.340.0380.04180.81
5.6.330.0370.03480.53
5.6.320.0370.04080.63
5.6.310.0390.02680.64
5.6.300.0420.03880.49
5.6.290.0320.05280.48
5.6.280.0250.06983.26
5.6.270.0410.04580.48
5.6.260.0650.02280.69
5.6.250.0570.02280.58
5.6.240.0370.03980.48
5.6.230.0560.02880.59
5.6.220.0600.02180.57
5.6.210.0400.06682.96
5.6.200.0330.04481.64
5.6.190.0440.06582.73
5.6.180.0500.06182.77
5.6.170.0410.06082.73
5.6.160.0410.04782.69
5.6.150.0310.07381.82
5.6.140.0470.05781.73
5.6.130.0520.04481.83
5.6.120.0440.06683.09
5.6.110.0410.06783.08
5.6.100.0370.05783.03
5.6.90.0320.04283.21
5.6.80.0350.07482.93
5.6.70.2560.04482.84
5.6.60.0710.03080.27
5.6.50.0500.04380.23
5.6.40.0400.04080.61
5.6.30.0620.02180.60
5.6.20.0310.04280.77
5.6.10.0300.04680.53
5.6.00.0440.03780.55
5.5.380.0490.03680.39
5.5.370.0540.02580.60
5.5.360.0470.05080.30
5.5.350.0470.05882.85
5.5.340.0390.06181.52
5.5.330.0460.04782.80
5.5.320.0450.04082.75
5.5.310.0400.05282.83
5.5.300.0440.04281.68
5.5.290.0350.05781.66
5.5.280.0350.06083.00
5.5.270.0390.04283.08
5.5.260.0360.06783.01
5.5.250.0300.06082.90
5.5.240.0530.05282.73
5.5.230.0380.04180.36
5.5.220.0470.03380.44
5.5.210.0410.03280.32
5.5.200.0450.03280.41
5.5.190.0350.04180.21
5.5.180.0490.03480.50
5.5.170.0480.04880.54
5.5.160.0510.02980.28
5.5.150.0340.04780.40
5.5.140.0320.04580.48
5.5.130.0340.04180.53
5.5.120.0510.03380.31
5.5.110.0420.03280.36
5.5.100.0460.03280.48
5.5.90.0520.03580.13
5.5.80.0390.04280.45
5.5.70.0270.05180.13
5.5.60.0420.03680.45
5.5.50.0530.02580.53
5.5.40.0470.02680.32
5.5.30.0400.03780.41
5.5.20.0450.04880.45
5.5.10.0480.04580.16
5.5.00.0470.03780.43
5.4.450.0770.06480.60
5.4.440.0710.06680.77
5.4.430.0850.04780.69
5.4.420.0650.06380.49
5.4.410.0940.03980.63
5.4.400.0700.05780.38
5.4.390.0690.07480.61
5.4.380.0910.04280.36
5.4.370.0560.05280.36
5.4.360.0890.04880.48
5.4.350.0880.05580.23
5.4.340.0830.05180.37
5.4.330.0300.04577.28
5.4.320.0920.05180.55
5.4.310.0880.05080.53
5.4.300.0630.06480.46
5.4.290.0760.05680.46
5.4.280.0920.05980.27
5.4.270.0820.05080.35
5.4.260.0940.05180.47
5.4.250.1050.05180.37
5.4.240.0870.06480.43
5.4.230.0790.05580.53
5.4.220.0720.06280.19
5.4.210.0840.06880.37
5.4.200.0960.05479.26
5.4.190.0860.05380.53
5.4.180.0740.06180.62
5.4.170.0840.05880.51
5.4.160.0830.04780.37
5.4.150.0780.05580.40
5.4.140.0780.05079.11
5.4.130.0770.04679.10
5.4.120.0700.05779.09
5.4.110.0780.05879.10
5.4.100.0970.05879.41
5.4.90.0950.06079.14
5.4.80.0920.06279.01
5.4.70.0760.06379.01
5.4.60.0410.07479.08
5.4.50.0350.03879.04
5.4.40.0350.03879.08
5.4.30.0310.07679.18
5.4.20.0430.06879.17
5.4.10.0360.03676.95
5.4.00.0410.03877.19

preferences:
49.05 ms | 401 KiB | 5 Q