3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x=1; $x<6; ++$x) { $unions[] = "SELECT " . ($x==1 ? "$x AS challenge_id, 1 as week_id" : "$x, 1"); $unions[] = "SELECT $x, 6"; } $derived_table = implode(' UNION ',$unions); ECHO $derived_table;

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.0080.01116.59
8.3.50.0070.01016.52
8.3.40.0090.00618.70
8.3.30.0100.00718.47
8.3.20.0080.00018.85
8.3.10.0080.00019.10
8.3.00.0080.00017.78
8.2.180.0070.01025.92
8.2.170.0130.00618.91
8.2.160.0100.00622.96
8.2.150.0000.00725.66
8.2.140.0060.00324.66
8.2.130.0090.00019.83
8.2.120.0040.00426.35
8.2.110.0090.00020.93
8.2.100.0000.01217.84
8.2.90.0050.00317.79
8.2.80.0000.00819.66
8.2.70.0040.00417.80
8.2.60.0050.00518.05
8.2.50.0040.00418.10
8.2.40.0030.00521.18
8.2.30.0000.00719.38
8.2.20.0050.00218.10
8.2.10.0000.00717.92
8.2.00.0030.00319.52
8.1.280.0140.00425.92
8.1.270.0040.00423.87
8.1.260.0120.00326.35
8.1.250.0060.00328.09
8.1.240.0040.00423.97
8.1.230.0090.00320.82
8.1.220.0030.00617.79
8.1.210.0040.00419.03
8.1.200.0060.00317.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.39
8.1.160.0000.00718.89
8.1.150.0000.00718.75
8.1.140.0050.00317.75
8.1.130.0000.00819.06
8.1.120.0070.00017.32
8.1.110.0040.00417.36
8.1.100.0000.00717.39
8.1.90.0080.00017.48
8.1.80.0040.00417.52
8.1.70.0030.00317.52
8.1.60.0000.00917.47
8.1.50.0000.00917.50
8.1.40.0000.00717.52
8.1.30.0070.00017.51
8.1.20.0040.00417.57
8.1.10.0040.00417.48
8.1.00.0040.00717.46
8.0.300.0040.00419.60
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0000.00817.31
8.0.260.0030.00317.24
8.0.250.0030.00316.95
8.0.240.0030.00616.96
8.0.230.0050.00316.94
8.0.220.0080.00016.87
8.0.210.0030.00616.82
8.0.200.0030.00316.80
8.0.190.0000.00816.82
8.0.180.0060.00316.93
8.0.170.0040.00416.89
8.0.160.0000.00716.92
8.0.150.0080.00016.81
8.0.140.0070.00016.83
8.0.130.0030.00313.34
8.0.120.0040.00416.75
8.0.110.0030.00316.94
8.0.100.0000.00716.89
8.0.90.0000.00716.68
8.0.80.0140.00516.87
8.0.70.0030.00516.76
8.0.60.0000.00716.74
8.0.50.0000.00816.86
8.0.30.0100.00817.16
8.0.20.0110.01017.40
8.0.10.0040.00417.02
8.0.00.0040.01316.63
7.4.330.0020.00215.55
7.4.320.0030.00316.60
7.4.300.0030.00316.58
7.4.290.0030.00316.57
7.4.280.0050.00316.61
7.4.270.0070.00016.50
7.4.260.0070.00016.45
7.4.250.0030.00616.42
7.4.240.0040.00416.53
7.4.230.0000.00716.40
7.4.220.0000.00816.59
7.4.210.0130.00516.45
7.4.200.0050.00216.38
7.4.160.0080.00816.51
7.4.140.0120.00717.86
7.4.130.0070.01016.42
7.4.120.0130.00916.61
7.4.110.0130.00316.32
7.4.100.0130.00716.59
7.4.90.0040.01916.47
7.4.80.0090.00619.39
7.4.70.0090.00916.66
7.4.60.0030.01316.38
7.4.50.0030.01016.42
7.4.40.0070.01116.42
7.4.00.0060.00614.88
7.3.330.0030.00313.19
7.3.320.0030.00313.21
7.3.310.0030.00316.28
7.3.300.0000.00616.29
7.3.290.0030.00516.34
7.3.280.0120.00716.37
7.3.260.0080.00816.32
7.3.240.0110.00816.47
7.3.230.0080.00816.25
7.3.210.0110.01216.58
7.3.200.0030.01316.43
7.3.190.0060.00916.38
7.3.180.0060.00916.51
7.3.170.0070.01016.46
7.3.160.0080.00816.27
7.2.330.0070.01016.78
7.2.320.0110.00716.46
7.2.310.0040.01416.48
7.2.300.0120.00916.42
7.2.290.0060.01516.73
7.2.80.0200.00416.15
7.2.60.1460.01115.07
7.2.50.1610.01015.13
7.2.40.1420.01115.64
7.2.30.1500.01315.72
7.2.20.1270.01015.55
7.2.10.1340.01015.68
7.2.00.1320.00715.60
7.1.200.0090.00015.83
7.1.170.1420.00814.08
7.1.160.1110.01116.56
7.1.150.1080.01116.86
7.1.140.1480.01316.59
7.1.130.1500.01016.86
7.1.120.1500.01216.99
7.1.110.1690.01416.21
7.1.100.1660.01316.35
7.1.90.1670.01516.18
7.1.80.1690.01716.43
7.1.70.1610.01315.20
7.1.60.1810.02133.40
7.1.50.1630.01232.98
7.1.40.1930.01432.67
7.1.30.1190.01432.68
7.1.20.1930.01932.53
7.1.10.0470.01414.83
7.1.00.0530.01714.81

preferences:
68.09 ms | 401 KiB | 5 Q