3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://test.com'; var_dump(current((array)$url)); $url = ['http://test.com']; var_dump(current((array)$url));

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.0100.01016.50
8.3.50.0140.00716.23
8.3.40.0120.00418.38
8.3.30.0060.00918.68
8.3.20.0000.00820.64
8.3.10.0040.00421.50
8.3.00.0040.00419.23
8.2.180.0150.00716.50
8.2.170.0070.00722.96
8.2.160.0110.00320.51
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00822.11
8.2.120.0040.00426.35
8.2.110.0040.00420.48
8.2.100.0040.00717.78
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0000.00817.37
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00422.25
8.2.30.0000.00920.79
8.2.20.0070.00017.86
8.2.10.0000.00717.98
8.2.00.0070.00017.99
8.1.280.0100.01025.92
8.1.270.0050.00322.06
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.62
8.1.230.0000.01119.10
8.1.220.0070.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0100.00018.38
8.1.160.0000.00819.06
8.1.150.0000.01018.80
8.1.140.0030.00619.50
8.1.130.0070.00018.83
8.1.120.0080.00017.39
8.1.110.0040.00417.30
8.1.100.0050.00317.29
8.1.90.0030.00617.45
8.1.80.0070.00317.38
8.1.70.0000.00817.36
8.1.60.0040.00417.59
8.1.50.0000.00817.41
8.1.40.0000.00917.50
8.1.30.0080.00017.61
8.1.20.0000.00717.65
8.1.10.0060.00317.41
8.1.00.0040.00417.37
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0000.00718.38
8.0.270.0030.00517.18
8.0.260.0070.00016.79
8.0.250.0080.00016.77
8.0.240.0080.00016.88
8.0.230.0000.00716.84
8.0.220.0060.00016.84
8.0.210.0000.00716.87
8.0.200.0000.00716.89
8.0.190.0060.00316.85
8.0.180.0040.00416.94
8.0.170.0040.00416.81
8.0.160.0080.00016.79
8.0.150.0040.00416.89
8.0.140.0030.00316.77
8.0.130.0000.00613.30
8.0.120.0000.00716.80
8.0.110.0040.00416.89
8.0.100.0030.00316.89
8.0.90.0050.00316.81
8.0.80.0120.00916.73
8.0.70.0050.00316.73
8.0.60.0070.00316.84
8.0.50.0030.00416.76
8.0.30.0090.01017.00
8.0.20.0090.01017.40
8.0.10.0000.00816.84
8.0.00.0120.00616.53
7.4.330.0020.00215.55
7.4.320.0070.00016.52
7.4.300.0060.00016.44
7.4.290.0030.00616.63
7.4.280.0030.00516.61
7.4.270.0080.00016.59
7.4.260.0030.00313.21
7.4.250.0040.00416.57
7.4.240.0050.00316.46
7.4.230.0030.00316.34
7.4.220.0030.01316.46
7.4.210.0060.00916.61
7.4.200.0030.00316.64
7.4.160.0090.00916.46
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0160.01016.35
7.4.120.0120.00716.42
7.4.110.0070.01116.58
7.4.100.0100.01016.45
7.4.90.0070.01016.45
7.4.80.0140.00319.39
7.4.70.0100.00716.31
7.4.60.0070.01016.35
7.4.50.0080.00316.43
7.4.40.0130.00316.60
7.4.30.0170.00016.50
7.4.00.0040.01415.03
7.3.330.0030.00213.07
7.3.320.0000.00513.13
7.3.310.0000.00716.30
7.3.300.0060.00016.22
7.3.290.0070.00016.18
7.3.280.0080.00716.16
7.3.270.0130.00317.40
7.3.260.0080.00916.19
7.3.250.0170.00416.27
7.3.240.0050.01416.31
7.3.230.0100.01316.29
7.3.210.0030.01316.54
7.3.200.0070.01416.32
7.3.190.0030.01916.22
7.3.180.0150.00316.31
7.3.170.0080.00916.22
7.3.160.0120.00616.26
7.2.330.0120.00616.57
7.2.320.0060.01016.39
7.2.310.0100.00616.28
7.2.300.0140.00716.17
7.2.290.0120.00316.38
7.2.60.0030.01316.82
7.2.00.0050.00819.03
7.1.200.0030.01015.41
7.1.100.0080.00517.95
7.1.70.0070.00717.06
7.1.60.3430.01033.35
7.1.50.0170.02033.02
7.1.40.0130.02032.51
7.1.30.3070.01032.56
7.1.20.3470.01732.65
7.1.10.0100.00714.57
7.1.00.3400.01314.85
7.0.200.0100.00714.84
7.0.190.0030.01314.96
7.0.180.0200.00714.31
7.0.170.2430.01314.39
7.0.160.4100.01714.22
7.0.150.0030.01314.26
7.0.140.0030.01314.50
7.0.130.4070.01314.47
7.0.120.3770.01014.35
7.0.110.0430.01314.40
7.0.100.2530.00714.27
7.0.90.0070.01314.28
7.0.80.0030.01314.29
7.0.70.0030.01014.27
7.0.60.0230.00714.26
7.0.50.0370.01014.43
7.0.40.0170.01314.44
7.0.30.0070.01014.48
7.0.20.0070.00714.44
7.0.10.2600.01314.68
7.0.00.2670.01714.64

preferences:
59.02 ms | 401 KiB | 5 Q