3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace BAR { print foo::T_STRING; } namespace BAR { const T_STRING = 'a'; echo T_STRING; class foo { const T_STRING = T_STRING; } }

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.4.20.0030.01617.74
8.4.10.0060.00319.62
8.3.150.0110.00417.07
8.3.140.0090.00917.13
8.3.130.0080.00018.43
8.3.120.0030.00616.46
8.3.110.0040.00416.38
8.3.100.0030.00516.55
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0160.00018.53
8.3.60.0110.00418.20
8.3.50.0100.01022.82
8.3.40.0090.00918.52
8.3.30.0030.01218.66
8.3.20.0040.00420.24
8.3.10.0040.00421.77
8.3.00.0050.00319.79
8.2.270.0150.00317.32
8.2.260.0070.00716.29
8.2.250.0060.00316.26
8.2.240.0130.00616.97
8.2.230.0030.00620.94
8.2.220.0000.00924.06
8.2.210.0050.00326.77
8.2.200.0070.00416.38
8.2.190.0120.00916.58
8.2.180.0150.00616.38
8.2.170.0120.00322.96
8.2.160.0130.00022.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00717.68
8.2.110.0040.00422.27
8.2.100.0090.00617.64
8.2.90.0040.00419.07
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.50
8.2.50.0030.00517.50
8.2.40.0080.00019.23
8.2.30.0040.00421.02
8.2.20.0040.00417.61
8.2.10.0040.00417.97
8.2.00.0040.00417.99
8.1.310.0150.00318.46
8.1.300.0030.00617.84
8.1.290.0040.00430.84
8.1.280.0150.00325.92
8.1.270.0060.00323.78
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0000.01023.68
8.1.230.0070.00419.04
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0040.00422.14
8.1.150.0040.00420.64
8.1.140.0070.00019.51
8.1.130.0070.00017.70
8.1.120.0070.00017.38
8.1.110.0000.00717.38
8.1.100.0050.00217.28
8.1.90.0060.00517.29
8.1.80.0000.00817.30
8.1.70.0000.00717.42
8.1.60.0000.00817.52
8.1.50.0060.00317.50
8.1.40.0040.00417.34
8.1.30.0040.00417.66
8.1.20.0080.00017.58
8.1.10.0040.00417.44
8.1.00.0000.00717.23
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0040.00418.29
8.0.270.0030.00616.70
8.0.260.0090.00017.23
8.0.250.0000.00716.86
8.0.240.0030.00716.88
8.0.230.0040.00416.86
8.0.220.0000.00716.72
8.0.210.0000.00716.83
8.0.200.0000.00616.87
8.0.190.0030.00316.84
8.0.180.0000.00716.75
8.0.170.0020.00516.77
8.0.160.0080.00016.90
8.0.150.0040.00416.84
8.0.140.0040.00416.82
8.0.130.0050.00013.34
8.0.120.0050.00316.73
8.0.110.0080.00016.70
8.0.100.0080.00016.82
8.0.90.0040.00416.72
8.0.80.0040.01116.88
8.0.70.0000.00716.86
8.0.60.0000.00716.82
8.0.50.0080.00016.89
8.0.30.0120.00516.93
8.0.20.0140.00717.40
8.0.10.0040.00417.05
8.0.00.0100.00716.74
7.4.330.0000.00515.08
7.4.320.0060.00016.44
7.4.300.0000.00716.43
7.4.290.0030.00316.51
7.4.280.0040.00416.57
7.4.270.0000.00716.54
7.4.260.0000.01016.46
7.4.250.0050.00216.39
7.4.240.0040.00416.52
7.4.230.0070.00016.32
7.4.220.0030.01516.61
7.4.210.0110.00716.48
7.4.200.0000.00816.52
7.4.160.0070.01116.33
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0090.00816.52
7.4.120.0110.00616.57
7.4.110.0110.01516.30
7.4.100.0120.01216.53
7.4.90.0210.00316.37
7.4.80.0030.01319.39
7.4.70.0100.00716.41
7.4.60.0130.00316.34
7.4.50.0060.00916.31
7.4.40.0180.00316.45
7.4.30.0000.01616.49
7.4.00.0040.01114.79
7.3.330.0000.00613.09
7.3.320.0030.00313.25
7.3.310.0030.00316.19
7.3.300.0000.00716.14
7.3.290.0090.00516.21
7.3.280.0070.01116.21
7.3.270.0070.01017.40
7.3.260.0120.00716.21
7.3.250.0120.00616.34
7.3.240.0110.00816.21
7.3.230.0090.01216.39
7.3.210.0040.01316.30
7.3.200.0060.01316.23
7.3.190.0060.01016.38
7.3.180.0090.01216.22
7.3.170.0080.00816.27
7.3.160.0140.00416.34
7.3.10.0000.01316.66
7.3.00.0100.00316.37
7.2.330.0140.00616.50
7.2.320.0090.00916.61
7.2.310.0120.00616.36
7.2.300.0110.00616.48
7.2.290.0150.00916.58
7.2.130.0070.00716.61
7.2.120.0070.00716.91
7.2.110.0090.00316.71
7.2.100.0030.01016.73
7.2.90.0320.00715.75
7.2.80.0250.01115.71
7.2.70.0310.00815.74
7.2.60.0250.00616.16
7.2.50.0290.01515.89
7.2.40.0250.00615.71
7.2.30.0270.00515.94
7.2.20.0290.01315.92
7.2.10.0320.00515.84
7.2.00.0210.00817.08
7.1.250.0030.00815.65
7.1.210.0480.00714.04
7.1.200.0310.01214.76
7.1.190.0450.00613.91
7.1.180.0450.01313.61
7.1.170.0390.00413.67
7.1.160.0270.01313.92
7.1.150.0840.00713.69
7.1.140.0430.00713.72
7.1.130.0520.01013.84
7.1.120.0470.00913.71
7.1.110.0380.00413.27
7.1.100.0350.00913.80
7.1.90.0340.00313.75
7.1.80.0340.00913.46
7.1.70.0230.00715.24
7.1.60.0270.01124.38
7.1.50.0490.00924.35
7.1.40.0490.02331.72
7.1.30.0920.01331.73
7.1.20.0710.01031.73
7.1.10.0410.00513.54
7.1.00.0240.04218.04
7.0.310.0490.00913.38
7.0.300.0440.00913.40
7.0.290.0500.01113.18
7.0.280.0580.00613.41
7.0.270.0400.01113.19
7.0.260.0620.00613.48
7.0.250.0350.00913.53
7.0.240.0420.01113.46
7.0.230.0440.00313.32
7.0.220.0470.00413.48
7.0.210.0360.01113.38
7.0.200.0240.00915.00
7.0.190.0520.00613.27
7.0.180.0680.00613.24
7.0.170.0570.00913.53
7.0.160.0670.01013.43
7.0.150.0470.00613.46
7.0.140.0360.00413.32
7.0.130.0390.01213.31
7.0.120.0390.01313.49
7.0.110.0770.00413.38
7.0.100.0520.00313.26
7.0.90.0350.03216.65
7.0.80.0320.02816.53
7.0.70.0240.03416.68
7.0.60.0320.03016.67
7.0.50.0340.03016.97
7.0.40.0300.03117.01
7.0.30.0260.03816.84
7.0.20.0350.03516.88
7.0.10.0310.03316.85
7.0.00.0460.03016.94
5.6.300.0130.00314.07
5.6.290.0120.01014.39
5.6.280.0120.01214.40
5.6.270.0180.00014.13
5.6.260.0150.00814.27
5.6.250.0110.01114.23
5.6.240.0160.00614.03
5.6.230.0190.02817.33
5.6.220.0170.03017.34
5.6.210.0150.03017.25
5.6.200.0140.03317.60
5.6.190.0130.03517.70
5.6.180.0160.03017.54
5.6.170.0100.03517.57
5.6.160.0070.03817.63
5.6.150.0130.03217.61
5.6.140.0090.03617.50
5.6.130.0150.03317.59
5.6.120.0200.02917.64
5.6.110.0180.02917.60
5.6.100.0170.03017.70
5.6.90.0120.03717.69
5.6.80.0150.03217.30
5.6.70.0160.03217.28
5.6.60.0210.03617.25
5.6.50.0160.03617.23
5.6.40.0140.03517.18
5.6.30.0220.03617.27
5.6.20.0150.03017.16
5.6.10.0110.03517.14
5.6.00.0140.03117.27

preferences:
56.23 ms | 403 KiB | 5 Q