3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = [ 'lorem ipsum', 'dolor sit amet', 'consectetur adipiscing elit' ]; $out = array_combine($in, array_fill(0, count($in), true)); print_r($out);

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.0180.00018.30
8.3.50.0040.01118.14
8.3.40.0070.00718.64
8.3.30.0080.00818.41
8.3.20.0070.00021.64
8.3.10.0080.00021.64
8.3.00.0040.00422.50
8.2.180.0170.00318.16
8.2.170.0100.00322.96
8.2.160.0070.00720.30
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.71
8.2.110.0100.01320.91
8.2.100.0040.00819.43
8.2.90.0040.00422.39
8.2.80.0040.00420.52
8.2.70.0030.00518.04
8.2.60.0000.00817.63
8.2.50.0040.00417.55
8.2.40.0000.00818.89
8.2.30.0070.00021.23
8.2.20.0050.00317.95
8.2.10.0040.00417.98
8.2.00.0070.00019.35
8.1.280.0060.01125.92
8.1.270.0000.00724.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00322.02
8.1.230.0080.00320.86
8.1.220.0000.00717.79
8.1.210.0090.00018.88
8.1.200.0060.00317.13
8.1.190.0080.00017.22
8.1.180.0000.01018.10
8.1.170.0050.00318.51
8.1.160.0050.00318.87
8.1.150.0060.00319.00
8.1.140.0030.00317.59
8.1.130.0030.00318.99
8.1.120.0030.00417.40
8.1.110.0060.00317.33
8.1.100.0050.00317.41
8.1.90.0040.00417.34
8.1.80.0080.00017.51
8.1.70.0000.00717.40
8.1.60.0030.00617.59
8.1.50.0070.00317.54
8.1.40.0080.00017.39
8.1.30.0000.00817.57
8.1.20.0040.00417.52
8.1.10.0000.00717.36
8.1.00.0000.00817.45
8.0.300.0070.00020.09
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0000.00717.09
8.0.260.0070.00317.30
8.0.250.0070.00016.89
8.0.240.0030.00316.85
8.0.230.0030.00616.89
8.0.220.0000.01016.70
8.0.210.0000.00716.67
8.0.200.0000.00716.87
8.0.190.0050.00216.89
8.0.180.0050.00316.82
8.0.170.0030.00616.94
8.0.160.0030.00616.77
8.0.150.0070.00016.67
8.0.140.0050.00216.69
8.0.130.0000.00513.25
8.0.120.0040.00416.88
8.0.110.0040.00416.86
8.0.100.0070.00016.67
8.0.90.0040.00416.83
8.0.80.0090.01216.88
8.0.70.0070.00016.74
8.0.60.0040.00416.78
8.0.50.0040.00416.70
8.0.30.0100.00616.96
8.0.20.0110.00817.40
8.0.10.0070.00016.88
8.0.00.0070.01016.58
7.4.330.0060.00016.74
7.4.320.0030.00316.48
7.4.300.0000.00616.59
7.4.290.0000.00716.49
7.4.280.0030.00516.48
7.4.270.0000.00616.59
7.4.260.0030.00316.61
7.4.250.0030.00316.44
7.4.240.0070.00016.59
7.4.230.0030.00516.47
7.4.220.0040.00416.57
7.4.210.0060.01016.54
7.4.200.0000.00816.65
7.4.160.0100.00616.46
7.4.140.0070.01117.86
7.4.130.0030.01316.43
7.4.120.0110.00716.45
7.4.110.0100.00616.42
7.4.100.0100.01016.32
7.4.90.0140.00316.52
7.4.80.0070.01719.39
7.4.70.0070.01016.39
7.4.60.0070.01416.41
7.4.50.0100.00316.50
7.4.40.0040.01216.13
7.4.00.0060.00714.87
7.3.330.0000.00512.92
7.3.320.0000.00613.06
7.3.310.0030.00316.25
7.3.300.0030.00316.22
7.3.290.0070.00016.25
7.3.280.0070.01016.20
7.3.260.0130.00516.24
7.3.240.0120.00916.35
7.3.230.0120.00916.46
7.3.210.0120.00916.35
7.3.200.0080.00816.19
7.3.190.0120.00316.30
7.3.180.0130.00316.20
7.3.170.0000.01616.28
7.3.160.0120.00316.33
7.3.120.0100.00614.92
7.3.110.0070.01014.74
7.3.100.0060.00914.75
7.3.90.0030.01214.90
7.3.80.0040.01214.66
7.3.70.0030.00914.64
7.3.60.0090.00314.74
7.3.50.0040.01414.84
7.3.40.0030.01214.38
7.3.30.0090.01214.88
7.3.20.0100.00316.39
7.3.10.0110.00216.44
7.3.00.0080.00616.48
7.2.330.0130.01016.34
7.2.320.0110.01116.50
7.2.310.0070.01016.58
7.2.300.0060.01216.30
7.2.290.0130.01316.39
7.2.250.0060.01214.77
7.2.240.0070.01115.20
7.2.230.0070.01414.76
7.2.220.0060.00915.00
7.2.210.0000.01315.07
7.2.200.0030.00914.69
7.2.190.0000.01014.71
7.2.180.0060.00615.09
7.2.170.0000.02114.93
7.2.130.0150.01016.54
7.2.120.0110.00616.77
7.2.110.0050.01616.62
7.2.100.0190.00816.68
7.2.90.0380.00616.41
7.2.80.0030.01116.71
7.2.70.0220.00416.92
7.2.60.0100.00816.62
7.2.50.0070.00716.73
7.2.40.0670.00817.27
7.2.30.0550.01117.08
7.2.20.0500.00617.41
7.2.10.0120.01217.26
7.2.00.0610.00917.07
7.1.330.0080.00415.69
7.1.320.0040.00815.41
7.1.310.0140.00015.69
7.1.300.0030.01015.66
7.1.290.0070.00715.73
7.1.280.0060.01215.66
7.1.270.0100.00315.46
7.1.260.0060.00615.83
7.1.250.0060.01015.21
7.1.200.0000.01515.79
7.1.160.3240.01016.57
7.1.150.0850.01416.71
7.1.140.0810.00516.89
7.1.130.0110.01116.41
7.1.120.0880.01516.63
7.1.110.1010.00816.37
7.1.100.0820.01016.42
7.1.90.0890.00916.20
7.1.80.0770.00715.93
7.1.70.0640.01115.05
7.1.60.0940.01333.19
7.1.50.0870.00932.80
7.1.40.0860.01232.45
7.1.30.0880.00832.64
7.1.20.0950.01532.68
7.1.10.0760.00814.72
7.1.00.1400.01014.95

preferences:
69.74 ms | 401 KiB | 5 Q