3v4l.org

run code in 300+ PHP versions simultaneously
<?php $true = true; $false = false; $one = 1; $string = 'string'; var_dump($true['it does not fucking matter'], $false['invalid']); var_dump($one['what about this']); var_dump($string['this?']); var_dump($true[0]);

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.40.0110.00418.60
8.3.30.0140.00319.23
8.3.20.0040.00420.34
8.3.10.0000.00823.53
8.3.00.0030.00619.38
8.2.170.0120.00422.96
8.2.160.0000.01320.32
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0060.01326.16
8.2.120.0000.00721.10
8.2.110.0100.00020.52
8.2.100.0040.00817.84
8.2.90.0000.00719.23
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0090.00019.88
8.2.30.0040.00418.13
8.2.20.0080.00017.61
8.2.10.0040.00418.11
8.2.00.0070.00017.85
8.1.270.0040.00420.65
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.00
8.1.230.0040.00723.86
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0030.00717.13
8.1.180.0040.00418.10
8.1.170.0060.00318.38
8.1.160.0050.00321.95
8.1.150.0080.00018.82
8.1.140.0000.00717.43
8.1.130.0030.00317.82
8.1.120.0040.00417.43
8.1.110.0030.00517.39
8.1.100.0050.00217.29
8.1.90.0030.00317.39
8.1.80.0000.00717.41
8.1.70.0030.00517.34
8.1.60.0030.00617.52
8.1.50.0000.00917.41
8.1.40.0040.00417.53
8.1.30.0080.00017.51
8.1.20.0030.00617.64
8.1.10.0000.00717.57
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.29
8.0.270.0000.00717.15
8.0.260.0030.00317.24
8.0.250.0070.00016.87
8.0.240.0000.00716.82
8.0.230.0030.00316.89
8.0.220.0030.00316.80
8.0.210.0040.00416.88
8.0.200.0000.00716.99
8.0.190.0090.00316.94
8.0.180.0000.00716.82
8.0.170.0030.00516.96
8.0.160.0040.00416.84
8.0.150.0050.00316.73
8.0.140.0070.00016.84
8.0.130.0030.00513.36
8.0.120.0030.00516.90
8.0.110.0040.00416.92
8.0.100.0000.00716.76
8.0.90.0000.00716.91
8.0.80.0090.01316.82
8.0.70.0040.00416.85
8.0.60.0000.00816.93
8.0.50.0000.00816.91
8.0.30.0080.01517.07
8.0.20.0070.01317.40
8.0.10.0080.00016.80
8.0.00.0110.00616.82
7.4.330.0020.00215.00
7.4.320.0030.00316.45
7.4.300.0030.00316.52
7.4.290.0070.00016.52
7.4.280.0030.00616.34
7.4.270.0000.00716.52
7.4.260.0070.00316.41
7.4.250.0000.00816.31
7.4.240.0020.00616.41
7.4.230.0000.00716.23
7.4.220.0140.00416.47
7.4.210.0090.00616.50
7.4.200.0000.00716.51
7.4.160.0150.00716.55
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0110.00516.44
7.4.120.0110.00616.49
7.4.110.0070.01016.46
7.4.100.0120.00416.62
7.4.90.0140.00816.45
7.4.80.0070.01319.39
7.4.70.0040.01216.58
7.4.60.0120.00616.52
7.4.50.0060.00316.40
7.4.40.0060.01516.28
7.4.30.0090.00616.32
7.4.00.0030.01315.14
7.3.330.0050.00213.16
7.3.320.0000.00513.07
7.3.310.0000.00716.20
7.3.300.0040.00416.28
7.3.290.0030.01316.27
7.3.280.0080.00816.25
7.3.270.0130.00317.40
7.3.260.0140.00316.46
7.3.250.0120.00616.35
7.3.240.0090.00916.25
7.3.230.0160.00016.39
7.3.210.0140.00316.30
7.3.200.0130.01019.39
7.3.190.0070.01016.21
7.3.180.0060.01016.35
7.3.170.0170.00016.34
7.3.160.0130.00316.33
7.2.330.0090.00916.63
7.2.320.0080.00816.54
7.2.310.0160.00716.48
7.2.300.0060.01016.62
7.2.290.0060.00916.31
7.1.100.0040.00717.88
7.1.70.0000.00817.23
7.1.60.0030.00919.40
7.1.50.0070.01016.82
7.1.00.0000.07722.43
7.0.200.0030.00516.67
7.0.140.0030.07322.15
7.0.60.0100.07719.87
7.0.50.0100.07317.81
7.0.40.0070.04320.00
7.0.30.0300.06720.17
7.0.20.0370.07720.17
7.0.10.0000.06320.00
7.0.00.0030.04320.12
5.6.280.0070.07021.09
5.6.210.0070.04720.65
5.6.200.0030.09018.15
5.6.190.0170.07720.41
5.6.180.3630.03320.41
5.6.170.0230.06320.42
5.6.160.0070.05020.41
5.6.150.0100.04718.16
5.6.140.0030.05018.15
5.6.130.0170.03318.08
5.6.120.0170.07720.98
5.6.110.0030.04321.00
5.6.100.0100.04720.97
5.6.90.0070.08020.97
5.6.80.0070.04320.27
5.5.350.0300.07320.52
5.5.340.0070.08017.92
5.5.330.0130.07720.43
5.5.320.0100.08720.51
5.5.310.0300.04720.13
5.5.300.0100.08017.84
5.5.290.0100.08018.00
5.5.280.0200.06320.75
5.5.270.0130.07720.91
5.5.260.0000.04320.86
5.5.250.0100.07720.57
5.5.240.0100.07020.15
5.4.450.0700.05319.10
5.4.440.0730.06019.13
5.4.430.1070.06019.10
5.4.420.1200.04019.51
5.4.410.0130.05018.93
5.4.400.0370.05718.83
5.4.390.0330.05018.68
5.4.380.0130.06018.52
5.4.370.0070.03718.65
5.4.360.0070.03718.51
5.4.350.0060.03511.97
5.4.340.0060.04011.97
5.4.320.0080.03412.45
5.4.310.0080.03512.45
5.4.300.0080.03412.45
5.4.290.0040.04012.45
5.4.280.0050.03612.35
5.4.270.0070.03612.34
5.4.260.0080.03612.34
5.4.250.0100.03212.34
5.4.240.0070.03412.35
5.4.230.0040.03912.34
5.4.220.0060.03612.34
5.4.210.0060.03412.34
5.4.200.0050.03812.34
5.4.190.0080.03512.34
5.4.180.0080.03312.34
5.4.170.0060.03612.34
5.4.160.0060.03512.34
5.4.150.0070.03412.34
5.4.140.0090.03812.02
5.4.130.0070.04312.01
5.4.120.0060.03611.96
5.4.110.0110.03211.96
5.4.100.0130.03411.96
5.4.90.0080.03511.96
5.4.80.0060.03711.96
5.4.70.0040.03811.96
5.4.60.0070.03911.96
5.4.50.0050.03611.96
5.4.40.0040.03611.95
5.4.30.0050.03811.95
5.4.20.0070.03411.95
5.4.10.0050.03811.95
5.4.00.0070.03511.44
5.3.290.0060.03912.80
5.3.280.0050.03912.71
5.3.270.0050.03912.72
5.3.260.0050.03912.72
5.3.250.0070.03712.71
5.3.240.0080.03712.72
5.3.230.0100.03812.71
5.3.220.0100.03412.68
5.3.210.0090.03512.68
5.3.200.0060.03612.68
5.3.190.0090.03612.67
5.3.180.0060.03912.67
5.3.170.0070.04012.66
5.3.160.0050.03912.67
5.3.150.0060.03912.68
5.3.140.0090.03412.66
5.3.130.0090.03712.65
5.3.120.0070.03812.66
5.3.110.0080.03712.66
5.3.100.0020.04212.12
5.3.90.0120.03012.09
5.3.80.0070.03512.07
5.3.70.0080.04712.08
5.3.60.0070.03612.06
5.3.50.0060.03612.00
5.3.40.0120.03112.00
5.3.30.0080.04311.95
5.3.20.0040.04411.72
5.3.10.0100.03011.69
5.3.00.0040.03711.68
5.2.170.0020.0339.18
5.2.160.0030.0319.18
5.2.150.0080.0279.18
5.2.140.0030.0329.18
5.2.130.0070.0279.13
5.2.120.0080.0259.13
5.2.110.0060.0279.14
5.2.100.0050.0289.13
5.2.90.0070.0289.14
5.2.80.0040.0319.14
5.2.70.0070.0279.13
5.2.60.0080.0279.09
5.2.50.0050.0309.05
5.2.40.0030.0309.04
5.2.30.0060.0289.01
5.2.20.0070.0269.00
5.2.10.0050.0288.92
5.2.00.0050.0298.78
5.1.60.0070.0238.06
5.1.50.0040.0298.05
5.1.40.0040.0268.04
5.1.30.0040.0268.39
5.1.20.0030.0278.41
5.1.10.0050.0258.13
5.1.00.0060.0238.14
5.0.50.0030.0216.61
5.0.40.0040.0206.47
5.0.30.0040.0326.29
5.0.20.0040.0196.26
5.0.10.0030.0206.23
5.0.00.0050.0296.23
4.4.90.0040.0144.77
4.4.80.0020.0164.75
4.4.70.0030.0154.76
4.4.60.0030.0154.75
4.4.50.0080.0134.77
4.4.40.0050.0234.71
4.4.30.0030.0174.75
4.4.20.0090.0164.84
4.4.10.0040.0194.85
4.4.00.0050.0234.76
4.3.110.0040.0164.67
4.3.100.0020.0164.66
4.3.90.0030.0184.64
4.3.80.0020.0264.59
4.3.70.0010.0174.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0040.0254.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0000.0183.22
4.3.00.0170.0237.01

preferences:
38.99 ms | 400 KiB | 5 Q