3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const FOO = FOO; } class Bar { const BAR = BAR; } echo "Define the linked constant AFTER reading:\n"; Foo::FOO; define('FOO', 'Value of FOO'); var_dump(Foo::FOO); echo "Define the linked constant BEFORE reading:\n"; define('BAR', 'Value of BAR'); var_dump(Bar::BAR);

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.01616.75
8.3.50.0120.00917.21
8.3.40.0100.00618.96
8.3.30.0060.00918.79
8.3.20.0080.00018.96
8.3.10.0100.00020.52
8.3.00.0060.00319.25
8.2.180.0140.00316.88
8.2.170.0070.00722.96
8.2.160.0130.00318.96
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00621.05
8.2.110.0030.00621.02
8.2.100.0090.00317.78
8.2.90.0060.00319.77
8.2.80.0000.00719.34
8.2.70.0000.00817.75
8.2.60.0060.00617.68
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0040.00418.11
8.2.20.0090.00317.68
8.2.10.0000.00817.81
8.2.00.0040.00417.74
8.1.280.0170.00025.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00719.58
8.1.230.0110.00020.97
8.1.220.0000.01017.74
8.1.210.0040.00418.92
8.1.200.0060.00317.35
8.1.190.0000.01117.40
8.1.180.0040.00418.10
8.1.170.0040.00418.86
8.1.160.0030.00518.72
8.1.150.0000.00718.52
8.1.140.0000.00817.28
8.1.130.0000.00717.89
8.1.120.0040.00717.46
8.1.110.0040.00417.33
8.1.100.0080.00017.39
8.1.90.0040.00417.40
8.1.80.0040.00417.41
8.1.70.0000.00717.38
8.1.60.0040.00417.59
8.1.50.0040.00417.32
8.1.40.0080.00017.42
8.1.30.0050.00317.58
8.1.20.0040.00417.57
8.1.10.0040.00417.55
8.1.00.0000.00717.47
8.0.300.0000.00720.01
8.0.290.0000.00716.63
8.0.280.0000.00718.48
8.0.270.0030.00317.21
8.0.260.0070.00016.89
8.0.250.0040.00416.96
8.0.240.0000.00816.93
8.0.230.0030.00316.98
8.0.220.0030.00316.94
8.0.210.0030.00316.96
8.0.200.0040.00416.90
8.0.190.0070.00017.04
8.0.180.0050.00316.97
8.0.170.0030.00616.89
8.0.160.0040.00416.93
8.0.150.0070.00316.91
8.0.140.0040.00416.97
8.0.130.0030.00313.40
8.0.120.0030.00516.93
8.0.110.0040.00416.93
8.0.100.0040.00417.04
8.0.90.0070.00016.99
8.0.80.0060.01317.02
8.0.70.0000.00716.93
8.0.60.0040.00417.00
8.0.50.0000.00816.90
8.0.30.0060.01317.26
8.0.20.0060.01217.13
8.0.10.0000.00716.93
8.0.00.0110.01016.67
7.4.330.0060.00012.89
7.4.320.0020.00516.37
7.4.300.0070.00016.45
7.4.290.0030.00316.60
7.4.280.0030.00616.57
7.4.270.0060.00016.52
7.4.260.0000.00513.30
7.4.250.0080.00016.48
7.4.240.0020.00516.39
7.4.230.0000.00716.55
7.4.220.0130.01016.50
7.4.210.0100.01016.57
7.4.200.0030.00316.66
7.4.190.0030.00316.35
7.4.160.0090.00616.57
7.4.150.0150.00416.63
7.4.140.0070.01016.47
7.4.130.0030.01416.54
7.4.120.0110.00716.43
7.4.110.0110.00716.47
7.4.100.0100.00716.57
7.4.90.0070.01016.52
7.4.80.0160.00719.39
7.4.70.0090.01016.45
7.4.60.0040.01216.45
7.4.50.0040.00416.31
7.4.40.0040.01416.32
7.4.30.0070.01016.35
7.4.00.0060.00914.91
7.3.330.0030.00313.06
7.3.320.0070.00013.23
7.3.310.0030.00516.33
7.3.300.0030.00316.27
7.3.290.0070.00716.31
7.3.280.0060.01416.24
7.3.270.0080.00816.34
7.3.260.0060.01116.51
7.3.250.0100.01016.50
7.3.240.0080.00916.28
7.3.230.0060.00916.60
7.3.210.0070.01016.56
7.3.200.0100.00616.56
7.3.190.0040.01316.43
7.3.180.0150.00016.55
7.3.170.0090.01516.45
7.3.160.0150.00316.35
7.3.120.0120.00614.85
7.3.110.0000.01614.67
7.3.100.0120.00314.62
7.3.90.0060.00914.57
7.3.80.0030.00714.48
7.3.70.0100.00614.76
7.3.60.0080.00014.75
7.3.50.0090.00314.57
7.3.40.0060.00914.59
7.3.30.0000.01114.67
7.3.20.0090.00616.56
7.3.10.0070.01016.57
7.3.00.0060.00316.50
7.2.330.0130.00316.63
7.2.320.0080.01116.42
7.2.310.0090.01516.47
7.2.300.0120.00916.45
7.2.290.0030.01316.44
7.2.240.0100.00715.12
7.2.230.0090.00914.91
7.2.220.0030.01015.07
7.2.210.0030.01014.78
7.2.200.0090.00414.90
7.2.190.0030.00914.68
7.2.180.0090.00615.08
7.2.170.0070.01014.77
7.2.160.0000.01214.86
7.2.150.0070.01016.81
7.2.140.0100.00716.83
7.2.130.0070.00416.41
7.2.120.0110.00416.71
7.2.110.0070.00716.83
7.2.100.0110.00016.77
7.2.90.0100.00316.70
7.2.80.0100.00716.96
7.2.70.0070.01017.05
7.2.60.0060.00616.64
7.2.50.0040.00816.61
7.2.40.0140.00016.99
7.2.30.0030.00916.82
7.2.20.0030.00616.84
7.2.10.0000.01216.70
7.2.00.0060.01018.21
7.1.330.0080.00915.56
7.1.320.0060.00915.59
7.1.310.0100.00015.63
7.1.300.0030.00915.48
7.1.290.0030.01015.30
7.1.280.0060.00315.51
7.1.270.0060.00615.30
7.1.260.0060.00915.56
7.1.250.0030.00715.60
7.1.200.0040.01115.78
7.1.100.0070.00717.96
7.1.70.0050.00217.04
7.1.60.0070.01719.30
7.1.50.0070.01316.96
7.1.00.0000.04322.56
7.0.200.0000.00816.68
7.0.140.0000.07722.15
7.0.120.0000.07722.04
7.0.60.0100.06719.83
7.0.50.0130.07717.88
7.0.40.0170.07017.72
7.0.30.0070.05317.86
7.0.20.0000.08317.76
7.0.10.0100.04317.78
7.0.00.0070.07317.85
5.6.280.0170.06020.90
5.6.210.0100.08320.51
5.6.200.0030.06318.19
5.6.190.0200.06718.17
5.6.180.0100.07018.19
5.6.170.0030.07318.18
5.6.160.0030.05318.19
5.6.150.0100.08018.12
5.6.140.0200.06718.18
5.6.130.0070.07318.18
5.6.120.0170.07318.18
5.6.110.0070.07718.24
5.6.100.0070.08718.14
5.6.90.0200.06318.15
5.6.80.0170.06017.50
5.6.70.0070.07317.56
5.6.60.0070.08017.63
5.6.50.0070.05017.57
5.6.40.0070.04017.59
5.6.30.0070.07317.61
5.6.20.0170.03017.51
5.6.10.0070.03717.53
5.6.00.0100.07317.63
5.5.350.0130.09720.44
5.5.340.0000.06317.95
5.5.330.0170.07018.03
5.5.320.0170.06017.97
5.5.310.0000.08018.08
5.5.300.0130.07318.06
5.5.290.0070.08017.99
5.5.280.0000.05318.08
5.5.270.0130.04717.98
5.5.260.0100.06317.95
5.5.250.0030.07017.84
5.5.240.0070.07717.38
5.5.230.0070.07317.30
5.5.220.0070.08017.36
5.5.210.0100.05317.40
5.5.200.0030.07717.31
5.5.190.0130.06717.43
5.5.180.0070.08317.30
5.5.160.0030.05317.30
5.5.150.0130.05317.43
5.5.140.0130.04717.36
5.5.130.0070.08017.42
5.5.120.0030.04717.35
5.5.110.0070.04717.43
5.5.100.0100.06717.24
5.5.90.0070.05717.23
5.5.80.0100.04017.23
5.5.70.0100.06317.16
5.5.60.0000.08017.18
5.5.50.0070.04317.22
5.5.40.0030.08317.18
5.5.30.0000.07317.21
5.5.20.0130.07017.27
5.5.10.0000.04317.32
5.5.00.0030.08017.18
5.4.450.0030.05319.34
5.4.440.0070.05319.59
5.4.430.0030.04319.44
5.4.420.0000.06319.33
5.4.410.0030.08319.20
5.4.400.0070.07719.03
5.4.390.0070.04319.00
5.4.380.0030.08019.09
5.4.370.0070.06319.32
5.4.360.0030.04719.05
5.4.350.0070.06719.14
5.4.340.0070.05719.02
5.4.320.0030.07718.95
5.4.310.0170.03719.00
5.4.300.0030.06718.88
5.4.290.0100.07319.12
5.4.280.0070.06319.09
5.4.270.0000.04319.03
5.4.260.0030.04319.26
5.4.250.0000.08719.09
5.4.240.0100.07019.11
5.4.230.0100.07018.94
5.4.220.0100.07319.09
5.4.210.0030.04019.00
5.4.200.0070.07719.09
5.4.190.0130.06318.94
5.4.180.0100.07319.08
5.4.170.0130.06319.04
5.4.160.0000.08318.98
5.4.150.0130.07019.02
5.4.140.0070.06316.58
5.4.130.0130.05316.27
5.4.120.0170.06716.45
5.4.110.0100.03316.54
5.4.100.0000.08316.34
5.4.90.0100.07016.51
5.4.80.0030.07716.47
5.4.70.0070.05316.44
5.4.60.0070.06016.42
5.4.50.0030.03716.41
5.4.40.0030.04016.40
5.4.30.0070.06016.31
5.4.20.0100.07316.39
5.4.10.0030.06016.43
5.4.00.0070.03715.83
5.3.290.0170.06714.68
5.3.280.0030.07314.58
5.3.270.0000.05714.64
5.3.260.0070.05014.64
5.3.250.0070.04314.59
5.3.240.0100.05714.67
5.3.230.0030.08314.63
5.3.220.0100.06314.61
5.3.210.0100.04314.59
5.3.200.0070.07014.57
5.3.190.0170.06714.53
5.3.180.0030.06714.51
5.3.170.0100.08014.52
5.3.160.0030.05014.51
5.3.150.0100.04314.52
5.3.140.0070.03314.60
5.3.130.0070.04014.64
5.3.120.0070.07314.56
5.3.110.0070.05714.50
5.3.100.0070.07714.05
5.3.90.0030.06314.22
5.3.80.0070.07014.01
5.3.70.0070.07314.05
5.3.60.0000.08313.89
5.3.50.0030.07713.80
5.3.40.0030.07013.94
5.3.30.0070.07313.93
5.3.20.0070.04013.76
5.3.10.0130.06013.70
5.3.00.0130.03713.52
5.2.170.0030.04011.03
5.2.160.0130.05311.14
5.2.150.0170.03011.23
5.2.140.0030.06311.03
5.2.130.0070.06311.10
5.2.120.0130.04311.13
5.2.110.0030.05311.11
5.2.100.0030.02711.13
5.2.90.0000.04711.15
5.2.80.0000.03311.07
5.2.70.0000.03011.09
5.2.60.0030.02711.09
5.2.50.0030.02711.01
5.2.40.0000.03011.05
5.2.30.0030.02710.95
5.2.20.0030.03710.97
5.2.10.0000.03310.75
5.2.00.0070.02310.79
5.1.60.0030.0239.90
5.1.50.0000.02710.20
5.1.40.0000.0239.89
5.1.30.0000.02710.36
5.1.20.0000.02710.20
5.1.10.0070.02010.03
5.1.00.0030.02710.16
5.0.50.0000.0208.38
5.0.40.0000.0208.39
5.0.30.0000.0338.31
5.0.20.0000.0208.16
5.0.10.0030.0178.08
5.0.00.0030.0308.18
4.4.90.0030.0137.57
4.4.80.0030.0137.57
4.4.70.0000.0207.57
4.4.60.0070.0107.57
4.4.50.0030.0107.57
4.4.40.0000.0237.57
4.4.30.0030.0137.57
4.4.20.0030.0137.57
4.4.10.0000.0177.57
4.4.00.0000.0277.57
4.3.110.0000.0177.57
4.3.100.0000.0137.57
4.3.90.0070.0107.57
4.3.80.0000.0237.57
4.3.70.0000.0177.57
4.3.60.0000.0177.57
4.3.50.0000.0137.57
4.3.40.0000.0237.57
4.3.30.0000.0177.57
4.3.20.0000.0177.57
4.3.10.0000.0177.57
4.3.00.0000.0137.57

preferences:
53.48 ms | 401 KiB | 5 Q