3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (get_defined_functions()['internal'] as $internalFunctionName) { if (defined($internalFunctionName)) { throw new Exception('Internal function constant name collision'); } else { define($internalFunctionName, $internalFunctionName); } } print_r(get_defined_constants(TRUE)['user']);

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.0110.00718.55
8.3.50.0160.00622.06
8.3.40.0120.00318.96
8.3.30.0100.00319.36
8.3.20.0070.00020.50
8.3.10.0040.00422.23
8.3.00.0000.00822.76
8.2.180.0150.00618.54
8.2.170.0030.01022.96
8.2.160.0060.00620.74
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00419.48
8.2.110.0000.00822.43
8.2.100.0120.00018.09
8.2.90.0000.00819.55
8.2.80.0040.00418.40
8.2.70.0040.00417.88
8.2.60.0000.00818.18
8.2.50.0050.00518.07
8.2.40.0040.00418.53
8.2.30.0030.00318.44
8.2.20.0000.00717.89
8.2.10.0040.00419.71
8.2.00.0070.00317.99
8.1.280.0190.00325.92
8.1.270.0000.00822.43
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00624.09
8.1.230.0040.00819.30
8.1.220.0000.00818.14
8.1.210.0040.00418.77
8.1.200.0100.00017.60
8.1.190.0000.00717.79
8.1.180.0030.00518.10
8.1.170.0000.00918.89
8.1.160.0000.00822.37
8.1.150.0040.00418.98
8.1.140.0040.00417.73
8.1.130.0000.00718.10
8.1.120.0030.00317.77
8.1.110.0000.00717.73
8.1.100.0000.00717.72
8.1.90.0040.00317.73
8.1.80.0000.00917.75
8.1.70.0040.00417.70
8.1.60.0030.00617.75
8.1.50.0040.00417.74
8.1.40.0060.00317.72
8.1.30.0030.00517.93
8.1.20.0040.00417.93
8.1.10.0000.00717.78
8.1.00.0000.00717.63
8.0.300.0040.00418.77
8.0.290.0030.00317.53
8.0.280.0030.00318.75
8.0.270.0070.00017.51
8.0.260.0040.00417.24
8.0.250.0000.00717.32
8.0.240.0030.00317.30
8.0.230.0030.00317.21
8.0.220.0040.00417.15
8.0.210.0000.00617.11
8.0.200.0040.00417.29
8.0.190.0030.00317.20
8.0.180.0000.00717.27
8.0.170.0060.00317.16
8.0.160.0080.00017.18
8.0.150.0040.00417.14
8.0.140.0050.00317.14
8.0.130.0030.00313.51
8.0.120.0000.00817.10
8.0.110.0040.00417.06
8.0.100.0050.00217.17
8.0.90.0040.00417.09
8.0.80.0090.00617.20
8.0.70.0050.00217.14
8.0.60.0030.00517.23
8.0.50.0040.00417.27
8.0.30.0150.00517.23
8.0.20.0110.00917.40
8.0.10.0000.00717.24
8.0.00.0090.01017.07
7.4.330.0000.00615.08
7.4.320.0030.00316.89
7.4.300.0000.00616.81
7.4.290.0040.00416.74
7.4.280.0080.00016.77
7.4.270.0000.00816.90
7.4.260.0070.00416.78
7.4.250.0000.00816.67
7.4.240.0010.00716.88
7.4.230.0030.00316.70
7.4.220.0070.01316.76
7.4.210.0090.00616.86
7.4.200.0040.00416.69
7.4.190.0040.00416.94
7.4.160.0090.00916.86
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0070.01116.80
7.4.120.0090.00816.79
7.4.110.0090.01316.84
7.4.100.0060.01016.87
7.4.90.0100.00716.58
7.4.80.0030.01519.39
7.4.70.0090.01416.52
7.4.60.0100.00716.97
7.4.50.0080.00516.70
7.4.40.0150.00022.77
7.4.30.0110.00517.06
7.4.00.0060.00315.43
7.3.330.0000.00513.27
7.3.320.0000.00513.38
7.3.310.0060.00316.58
7.3.300.0030.00416.45
7.3.290.0060.00916.67
7.3.280.0070.00816.61
7.3.270.0090.00917.40
7.3.260.0110.00616.74
7.3.250.0140.00716.72
7.3.240.0110.00516.66
7.3.230.0070.01016.56
7.3.210.0060.01116.98
7.3.200.0140.00719.39
7.3.190.0160.00716.87
7.3.180.0120.00316.66
7.3.170.0070.01016.61
7.3.160.0060.01216.48
7.3.120.0030.01315.11
7.2.330.0100.01016.84
7.2.320.0060.01616.81
7.2.310.0110.00717.02
7.2.300.0110.00616.95
7.2.290.0130.00316.73
7.2.60.0030.01016.87
7.2.00.0000.01019.57
7.1.200.0060.00615.77
7.1.100.0060.00918.09
7.1.70.0070.00316.93
7.1.60.0070.01719.82
7.1.50.0030.01716.91
7.1.00.0000.07722.55
7.0.200.0180.00416.90
7.0.140.0070.08022.04
7.0.100.0170.03020.24
7.0.90.0100.05020.24
7.0.80.0070.04320.19
7.0.70.0030.05020.20
7.0.60.0100.03720.07
7.0.50.0030.03720.45
7.0.40.0030.04720.00
7.0.30.0070.04020.08
7.0.20.0070.04019.98
7.0.10.0000.04320.06
7.0.00.0030.04720.08
5.6.280.0100.07721.91
5.6.250.0170.04321.32
5.6.240.0200.06021.45
5.6.230.0100.04321.42
5.6.220.0100.04721.46
5.6.210.0130.04321.27
5.6.200.0070.07321.34
5.6.190.0070.04721.31
5.6.180.0070.03721.21
5.6.170.0130.03021.24
5.6.160.0130.04021.28
5.6.150.0030.04721.27
5.6.140.0030.04021.31
5.6.130.0000.04721.36
5.6.120.0100.07721.21
5.6.110.0230.07021.23
5.6.100.0070.08321.38
5.6.90.0100.07721.14
5.6.80.0030.08720.65
5.6.70.0030.08720.66
5.6.60.0000.06020.75
5.6.50.0100.07320.74
5.6.40.0100.07720.55
5.6.30.0130.07320.66
5.6.20.0130.07020.71
5.6.10.0030.08020.64
5.6.00.0030.08320.67
5.5.380.0070.07321.32
5.5.370.0070.06021.21
5.5.360.0130.04021.28
5.5.350.0070.04321.14
5.5.340.0070.03721.15
5.5.330.0030.06021.15
5.5.320.0070.03721.06
5.5.310.0030.04021.16
5.5.300.0070.04021.14
5.5.290.0000.04721.04
5.5.280.0030.08721.05
5.5.270.0030.08721.08
5.5.260.0100.08021.07
5.5.250.0070.05020.95
5.5.240.0100.07720.44
5.5.230.0070.07720.54
5.5.220.0200.06720.55
5.5.210.0070.08320.55
5.5.200.0130.08020.34
5.5.190.0130.07320.50
5.5.180.0070.08020.49
5.5.160.0030.08320.34
5.5.150.0030.07720.50
5.5.140.0070.07720.47
5.5.130.0030.07720.32
5.5.120.0100.07720.51
5.5.110.0100.07720.39
5.5.100.0070.08020.33
5.5.90.0100.07020.32
5.5.80.0130.07320.32
5.5.70.0130.07020.39
5.5.60.0100.07320.28
5.5.50.0100.07020.37
5.5.40.0130.07320.34
5.5.30.0100.07320.29
5.5.20.0030.08020.30
5.5.10.0130.07320.34
5.5.00.0070.08020.33
5.4.450.0030.04319.55
5.4.440.0070.08019.56
5.4.430.0130.07319.46
5.4.420.0130.04319.63
5.4.410.0130.07319.33
5.4.400.0030.08019.32
5.4.390.0100.07019.33
5.4.380.0100.07319.23
5.4.370.0130.07019.38
5.4.360.0070.08319.22
5.4.350.0130.07019.34
5.4.340.0030.07018.98
5.4.320.0000.08319.45
5.4.310.0070.06319.14
5.4.300.0130.07019.14
5.4.290.0030.07319.13
5.4.280.0000.08319.18
5.4.270.0100.07319.31
5.4.260.0130.07019.33
5.4.250.0070.07719.21
5.4.240.0000.06019.29
5.4.230.0070.07719.31
5.4.220.0070.07019.32
5.4.210.0170.06719.18
5.4.200.0070.08019.23
5.4.190.0070.07019.24
5.4.180.0030.08019.18
5.4.170.0100.07719.14
5.4.160.0000.08019.11
5.4.150.0130.07018.95
5.4.140.0070.07016.27
5.4.130.0030.07016.25
5.4.120.0100.07016.26
5.4.110.0000.07716.45
5.4.100.0070.06716.65
5.4.90.0130.06316.45
5.4.80.0070.04316.59
5.4.70.0100.05316.55
5.4.60.0070.07716.55
5.4.50.0070.06716.42
5.4.40.0030.08016.47
5.4.30.0070.06716.54
5.4.20.0070.04016.59
5.4.10.0070.07316.54
5.4.00.0070.04316.00
5.3.290.0070.07714.62
5.3.280.0130.06714.54
5.3.270.0070.07314.60
5.3.260.0070.04314.62
5.3.250.0030.06714.46
5.3.240.0070.07014.61
5.3.230.0070.06314.59
5.3.220.0130.06714.43
5.3.210.0070.04714.43
5.3.200.0100.06714.39
5.3.190.0070.07314.39
5.3.180.0030.08314.52
5.3.170.0030.07714.38
5.3.160.0000.08714.56
5.3.150.0100.07714.42
5.3.140.0000.04714.54
5.3.130.0030.07714.42
5.3.120.0100.07014.55
5.3.110.0070.07714.37
5.3.100.0100.06714.00
5.3.90.0070.08013.88
5.3.80.0070.07314.00
5.3.70.0030.05013.88
5.3.60.0030.06713.98
5.3.50.0030.04313.80
5.3.40.0000.07013.93
5.3.30.0100.07013.85
5.3.20.0070.07313.61
5.3.10.0030.07313.62
5.3.00.0070.05713.49

preferences:
47.62 ms | 400 KiB | 5 Q