3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Haha { const HEH='wow'; } $nest='HEH'; $nest2='nest'; echo constant('Haha::'.$$nest2);

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.0070.01418.38
8.3.50.0180.00418.08
8.3.40.0040.01118.62
8.3.30.0100.00718.45
8.3.20.0040.00418.64
8.3.10.0040.00421.90
8.3.00.0070.00023.65
8.2.180.0100.01018.16
8.2.170.0120.00322.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00720.92
8.2.120.0040.00426.35
8.2.110.0060.00319.03
8.2.100.0040.00817.78
8.2.90.0040.00417.91
8.2.80.0050.00319.21
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0050.00317.55
8.2.40.0060.00319.23
8.2.30.0000.00720.73
8.2.20.0040.00418.05
8.2.10.0050.00218.06
8.2.00.0080.00018.11
8.1.280.0160.00625.92
8.1.270.0070.00720.33
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0030.00622.13
8.1.230.0040.00821.00
8.1.220.0030.00517.76
8.1.210.0030.00619.11
8.1.200.0000.00817.35
8.1.190.0000.00816.99
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0040.00418.77
8.1.150.0040.00418.89
8.1.140.0070.00018.98
8.1.130.0040.00417.37
8.1.120.0070.00017.52
8.1.110.0000.00817.47
8.1.100.0030.00517.45
8.1.90.0040.00417.44
8.1.80.0080.00017.50
8.1.70.0080.00017.38
8.1.60.0030.00617.60
8.1.50.0080.00317.49
8.1.40.0030.00517.52
8.1.30.0080.00417.51
8.1.20.0050.00217.58
8.1.10.0000.00717.48
8.1.00.0040.00417.46
8.0.300.0040.00420.09
8.0.290.0040.00416.63
8.0.280.0000.00818.46
8.0.270.0070.00017.26
8.0.260.0000.00616.75
8.0.250.0000.00716.97
8.0.240.0030.00516.97
8.0.230.0050.00216.95
8.0.220.0070.00016.77
8.0.210.0000.00716.93
8.0.200.0020.00516.97
8.0.190.0070.00016.94
8.0.180.0070.00016.90
8.0.170.0060.00316.79
8.0.160.0040.00416.93
8.0.150.0030.00316.70
8.0.140.0070.00016.86
8.0.130.0000.00613.27
8.0.120.0040.00416.90
8.0.110.0040.00416.95
8.0.100.0040.00416.79
8.0.90.0040.00316.87
8.0.80.0110.00816.84
8.0.70.0000.00716.76
8.0.60.0040.00416.78
8.0.50.0080.00016.89
8.0.30.0070.01116.98
8.0.20.0100.01017.40
8.0.10.0040.00416.89
8.0.00.0130.00516.95
7.4.330.0040.00015.55
7.4.320.0060.00016.44
7.4.300.0030.00316.40
7.4.290.0030.00316.48
7.4.280.0090.00016.40
7.4.270.0070.00016.61
7.4.260.0030.00616.59
7.4.250.0000.00916.61
7.4.240.0000.00716.61
7.4.230.0030.00316.48
7.4.220.0050.00216.68
7.4.210.0080.00916.60
7.4.200.0030.00316.41
7.4.160.0090.00616.45
7.4.140.0080.01417.86
7.4.130.0100.00716.67
7.4.120.0120.00616.53
7.4.110.0070.01016.55
7.4.100.0030.01416.43
7.4.90.0100.01016.34
7.4.80.0130.00319.39
7.4.70.0100.00616.63
7.4.60.0090.00616.54
7.4.50.0130.00316.30
7.4.40.0160.00016.52
7.4.00.0030.01314.87
7.3.330.0050.00013.16
7.3.320.0030.00313.32
7.3.310.0040.00416.29
7.3.300.0030.00316.30
7.3.290.0000.00716.21
7.3.280.0030.01716.11
7.3.260.0140.00616.56
7.3.240.0070.01316.38
7.3.230.0030.01316.49
7.3.210.0060.01216.58
7.3.200.0110.00616.46
7.3.190.0130.00316.28
7.3.180.0090.01216.41
7.3.170.0060.01916.43
7.3.160.0100.00716.25
7.2.330.0030.01716.75
7.2.320.0190.00616.68
7.2.310.0130.00316.82
7.2.300.0130.00316.57
7.2.290.0060.01616.72
7.2.100.0000.01714.88
7.2.90.1210.00614.62
7.2.80.0100.00714.84
7.2.70.5330.00714.91
7.2.60.4810.00615.16
7.2.50.5190.01014.74
7.2.40.4260.00315.11
7.2.30.3920.00715.08
7.2.20.4100.00714.95
7.2.10.3800.00015.00
7.2.00.4040.01015.05
7.1.220.0150.01213.87
7.1.210.0040.01513.84
7.1.200.0330.00613.59
7.1.190.4570.00314.03
7.1.180.4410.00313.63
7.1.170.4900.00613.90
7.1.160.5210.00713.88
7.1.150.4080.01014.05
7.1.140.3040.00314.12
7.1.130.3470.00713.98
7.1.120.4220.01013.96
7.1.110.3820.01313.52
7.1.100.4570.00613.88
7.1.90.5730.00713.81
7.1.80.5470.01013.83
7.1.70.6140.01013.74
7.1.60.5440.00731.40
7.1.50.4870.00731.79
7.1.40.1080.01431.98
7.1.30.0340.01631.73
7.1.20.0500.01931.50
7.1.10.0110.00413.75
7.1.00.0480.00913.73
5.6.380.0080.00813.79

preferences:
73.98 ms | 401 KiB | 5 Q