3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = []; for($i=4;$i>=0;$i--){ $x = [$i => $x]; } print_r($x);

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.30.0130.00620.57
8.4.20.0100.01018.86
8.4.10.0130.00617.65
8.3.160.0000.00816.62
8.3.150.0120.00618.77
8.3.140.0090.00916.68
8.3.130.0080.00018.22
8.3.120.0170.00018.68
8.3.110.0190.00020.94
8.3.100.0100.00018.46
8.3.90.0070.00726.77
8.3.80.0090.00316.62
8.3.70.0130.00916.63
8.3.60.0070.01418.53
8.3.50.0160.00521.02
8.3.40.0030.01218.67
8.3.30.0070.00718.54
8.3.20.0070.00021.74
8.3.10.0040.00420.29
8.3.00.0000.00823.48
8.2.270.0030.00617.31
8.2.260.0070.01018.89
8.2.250.0090.00016.75
8.2.240.0060.00318.76
8.2.230.0080.00022.58
8.2.220.0060.01224.06
8.2.210.0050.00526.77
8.2.200.0060.00316.63
8.2.190.0060.00916.58
8.2.180.0140.00718.16
8.2.170.0000.01422.96
8.2.160.0000.01319.47
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0030.00621.01
8.2.100.0070.00417.91
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00718.00
8.2.50.0000.00918.07
8.2.40.0040.00418.03
8.2.30.0040.00417.94
8.2.20.0000.00718.05
8.2.10.0000.00819.20
8.2.00.0030.00719.14
8.1.310.0070.01016.44
8.1.300.0030.00620.20
8.1.290.0030.00530.84
8.1.280.0110.00425.92
8.1.270.0080.00022.19
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0100.00018.89
8.1.230.0120.00018.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.78
8.1.150.0040.00418.73
8.1.140.0040.00422.13
8.1.130.0030.00319.98
8.1.120.0000.00717.41
8.1.110.0050.00217.34
8.1.100.0070.00317.25
8.1.90.0040.00417.41
8.1.80.0000.00817.38
8.1.70.0030.00517.30
8.1.60.0050.00317.48
8.1.50.0000.00917.51
8.1.40.0030.00517.33
8.1.30.0070.00017.53
8.1.20.0030.01017.54
8.1.10.0000.00717.43
8.1.00.0080.00017.26
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0070.00018.38
8.0.270.0030.00316.77
8.0.260.0030.00320.06
8.0.250.0030.00316.77
8.0.240.0000.00616.90
8.0.230.0030.00316.85
8.0.220.0050.00216.72
8.0.210.0030.00516.81
8.0.200.0070.00016.77
8.0.190.0050.00516.79
8.0.180.0000.00716.81
8.0.170.0000.00916.74
8.0.160.0000.00816.80
8.0.150.0050.00516.77
8.0.140.0030.00316.68
8.0.130.0060.00013.22
8.0.120.0000.00816.74
8.0.110.0050.00316.81
8.0.100.0070.00016.61
8.0.90.0040.00416.70
8.0.80.0070.00716.86
8.0.70.0030.00316.69
8.0.60.0040.00416.88
8.0.50.0040.00416.88
8.0.30.0170.01117.05
8.0.20.0100.01316.93
8.0.10.0080.00017.04
8.0.00.0140.00416.54
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00616.44
7.4.290.0030.00316.44
7.4.280.0080.00016.44
7.4.270.0030.00316.46
7.4.260.0000.00816.43
7.4.250.0070.00016.32
7.4.240.0040.00316.44
7.4.230.0070.00016.32
7.4.220.0040.00416.18
7.4.210.0100.00816.45
7.4.200.0050.00316.54
7.4.140.0110.00817.86
7.4.130.0130.00416.45
7.4.120.0060.01216.45
7.4.110.0090.00916.49
7.4.100.0000.01716.38
7.4.90.0110.00816.47
7.4.80.0180.00319.39
7.4.70.0090.00916.43
7.4.60.0100.00616.55
7.4.50.0070.00716.60
7.4.40.0070.01016.27
7.4.00.0140.00314.98
7.3.330.0000.00613.17
7.3.320.0000.00613.13
7.3.310.0090.00016.38
7.3.300.0030.00316.36
7.3.290.0000.00716.16
7.3.280.0070.01316.29
7.3.260.0100.00916.45
7.3.240.0100.00716.45
7.3.230.0150.00916.34
7.3.210.0100.00716.37
7.3.200.0060.01016.44
7.3.190.0070.01016.55
7.3.180.0070.01416.25
7.3.170.0090.00916.42
7.3.160.0110.00616.29
7.3.70.0000.01314.90
7.3.60.0000.01214.89
7.3.50.0080.00514.56
7.3.40.0100.01414.71
7.3.30.0050.00514.84
7.3.20.0090.00614.46
7.3.10.0190.00014.90
7.3.00.0150.00414.95
7.2.330.0070.01116.66
7.2.320.0090.00916.59
7.2.310.0100.00716.68
7.2.300.0090.00816.43
7.2.290.0090.00916.69
7.2.200.0120.00914.81
7.2.190.0000.01314.68
7.2.180.0100.00314.77
7.2.170.0060.00614.54
7.2.160.0030.01014.83
7.2.150.0090.00914.93
7.2.140.0070.01114.78
7.2.130.0210.00315.02
7.2.120.0170.00315.23
7.2.110.0140.00615.07
7.2.100.0130.01315.04
7.2.90.0140.00615.05
7.2.80.0200.00314.77
7.2.70.0130.00714.87
7.2.60.0190.00015.03
7.2.50.0140.00615.09
7.2.40.0240.00314.75
7.2.30.0120.00814.77
7.2.20.0150.00915.11
7.2.10.0100.01015.14
7.2.00.0200.00014.90
7.1.300.0070.01014.10
7.1.290.0130.00313.80
7.1.280.0070.01113.96
7.1.270.0180.00013.94
7.1.260.0090.01013.85
7.1.250.0530.00613.92

preferences:
27.62 ms | 403 KiB | 5 Q