3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', 1024); $array = []; for ($i = 0; $i < 1000000; $i++) { $arrays[] = [1, 2, 3, 4, 5, 6, 7, 8]; }

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.0320.02633.47
8.3.50.0230.02834.40
8.3.40.0360.01735.78
8.3.30.0300.03635.73
8.3.20.0160.01337.37
8.3.10.0110.01539.70
8.3.00.0070.01137.30
8.2.180.0390.03033.75
8.2.170.0260.02635.95
8.2.160.0440.02037.27
8.2.150.0200.01035.82
8.2.140.0190.02538.17
8.2.130.0130.01637.52
8.2.120.0000.01840.19
8.2.110.0100.02340.29
8.2.100.0170.02734.93
8.2.90.0150.01234.61
8.2.80.0230.01935.59
8.2.70.0110.01834.99
8.2.60.0130.01634.86
8.2.50.0220.00734.56
8.2.40.0230.00637.69
8.2.30.0100.01737.55
8.2.20.0130.01634.67
8.2.10.0070.02034.91
8.2.00.0250.00434.90
8.1.280.0170.03352.02
8.1.270.0090.00942.05
8.1.260.0060.01939.19
8.1.250.0070.01836.79
8.1.240.0130.01041.96
8.1.230.0250.01236.18
8.1.220.0180.00734.61
8.1.210.0130.01034.10
8.1.200.0100.01634.32
8.1.190.0240.00734.18
8.1.180.0170.01034.31
8.1.170.0090.01635.70
8.1.160.0160.00739.02
8.1.150.0160.00635.86
8.1.140.0160.01336.55
8.1.130.0100.01334.66
8.1.120.0040.01934.37
8.1.110.0040.01834.46
8.1.100.0130.01034.48
8.1.90.0130.01034.55
8.1.80.0070.01634.35
8.1.70.0070.01434.50
8.1.60.0160.01334.63
8.1.50.0130.01634.53
8.1.40.0130.01634.54
8.1.30.0070.02334.50
8.1.20.0110.01834.45
8.1.10.0260.02350.49
8.1.00.0170.03350.47
8.0.300.0060.00321.59
8.0.290.0040.00417.63
8.0.280.0050.00219.38
8.0.270.0050.00318.12
8.0.260.0080.00018.21
8.0.250.0000.00717.94
8.0.240.0060.00317.87
8.0.230.0040.00418.06
8.0.220.0040.00417.89
8.0.210.0030.00617.93
8.0.200.0000.00717.98
8.0.190.0000.01017.89
8.0.180.0030.00517.96
8.0.170.0000.00817.89
8.0.160.0000.00817.80
8.0.150.0080.00017.86
8.0.140.0000.00917.89
8.0.130.0060.00314.32
8.0.120.0060.00317.86
8.0.110.0030.00517.95
8.0.100.0040.00417.95
8.0.90.0030.00617.94
8.0.80.0100.00717.84
8.0.70.0050.00517.74
8.0.60.0000.00817.70
8.0.50.0030.00617.72
8.0.30.0100.01017.92
8.0.20.0120.01417.99
8.0.10.0040.00417.97
8.0.00.0140.00717.69
7.4.330.0000.00516.70
7.4.320.0000.00817.31
7.4.300.0000.00717.52
7.4.290.0000.00817.46
7.4.280.0000.01017.41
7.4.270.0060.00317.37
7.4.260.0030.00917.43
7.4.250.0030.00617.35
7.4.240.0040.00417.51
7.4.230.0000.00817.35
7.4.220.0120.00917.50
7.4.210.0080.00817.55
7.4.200.0030.00617.53
7.4.160.0130.00617.64
7.4.150.0070.02417.52
7.4.140.0130.00917.86
7.4.130.0140.01017.46
7.4.120.0120.01217.71
7.4.110.0150.00417.55
7.4.100.0190.00617.46
7.4.90.0070.01317.45
7.4.80.0100.01019.39
7.4.70.0070.01117.50
7.4.60.0060.01217.37
7.4.50.0140.00417.31
7.4.40.0120.00817.37
7.4.30.0120.00617.59
7.4.00.0060.00915.77
7.3.330.0080.00014.25
7.3.320.0000.00714.10
7.3.310.0040.00417.41
7.3.300.0050.00317.19
7.3.290.0110.00717.28
7.3.280.0100.01017.31
7.3.270.0160.00317.71
7.3.260.0160.00617.48
7.3.250.0130.00917.43
7.3.240.0090.01017.40
7.3.230.0150.00317.39
7.3.210.0070.01417.36
7.3.200.0120.00817.45
7.3.190.0090.01917.38
7.3.180.0080.01117.45
7.3.170.0100.01317.46
7.3.160.0070.01117.37
7.3.10.0070.00716.70
7.3.00.0070.00716.61
7.2.330.0060.01317.61
7.2.320.0140.00517.27
7.2.310.0070.01317.62
7.2.300.0060.01917.31
7.2.290.0080.01617.66
7.2.130.0060.00916.66
7.2.120.0090.00616.80
7.2.110.0130.00316.91
7.2.100.0000.01016.86
7.2.90.0070.00716.90
7.2.80.0080.00816.79
7.2.70.0070.01016.64
7.2.60.0090.00716.82
7.2.50.0130.00616.90
7.2.40.0090.00616.88
7.2.30.0100.00716.86
7.2.20.0090.00616.88
7.2.10.0040.00716.86
7.2.00.0030.00817.87
7.1.250.0000.01515.69
7.1.200.0090.00315.56
7.1.100.0050.00918.17
7.1.70.0000.00817.10
7.1.60.0070.01719.36
7.1.50.0130.01734.91
7.1.00.0030.08022.51
7.0.200.0000.00916.75
7.0.60.0070.08021.25
7.0.50.0200.05319.38
7.0.40.0200.06719.90
7.0.30.0370.07320.34
7.0.20.0300.07320.18
7.0.10.0100.07320.18
7.0.00.0070.07320.30
5.6.280.0030.06020.91
5.6.210.0100.03320.76
5.6.200.0100.05718.19
5.6.190.0000.05720.75
5.6.180.0430.06020.43
5.6.170.0270.06720.42
5.6.160.0000.04720.37
5.6.150.0030.06318.19
5.6.140.0030.08318.15
5.6.130.0130.08318.16
5.6.120.0170.07321.02
5.6.110.0100.06721.00
5.6.100.0000.09021.10
5.6.90.0100.07720.99
5.6.80.0100.07320.36
5.5.350.0100.03320.41
5.5.340.0070.07018.04
5.5.330.0030.08720.44
5.5.320.0030.08320.34
5.5.310.0300.06020.13
5.5.300.0130.03717.95
5.5.290.0000.04718.01
5.5.280.0100.08020.77
5.5.270.0200.07720.65
5.5.260.0130.07320.87
5.5.250.0030.08720.55
5.5.240.0200.06320.27

preferences:
64.17 ms | 401 KiB | 5 Q