3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[something] = "Something is not a string. It's a constant. But because it's not found, PHP will assume you meant a string."; //And if you error reporting is off, you'll never know. echo $array[something];

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.0040.01516.63
8.3.50.0120.00321.95
8.3.40.0170.00318.75
8.3.30.0070.00719.09
8.3.20.0040.00420.16
8.3.10.0060.00323.36
8.3.00.0040.00419.26
8.2.180.0080.00818.06
8.2.170.0160.00322.96
8.2.160.0140.00319.22
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00422.13
8.2.110.0100.00022.16
8.2.100.0150.00019.83
8.2.90.0030.00619.24
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0050.00318.04
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0000.00817.97
8.2.20.0040.00417.78
8.2.10.0040.00418.11
8.2.00.0040.00417.64
8.1.280.0170.00325.92
8.1.270.0090.00023.96
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.88
8.1.230.0030.00918.91
8.1.220.0080.00017.78
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0000.00917.23
8.1.180.0040.00418.86
8.1.170.0040.00418.66
8.1.160.0000.00722.00
8.1.150.0070.00018.41
8.1.140.0000.00717.39
8.1.130.0070.00017.68
8.1.120.0080.00017.41
8.1.110.0070.00317.42
8.1.100.0000.00717.37
8.1.90.0040.00417.38
8.1.80.0040.00417.45
8.1.70.0030.00317.25
8.1.60.0080.00017.46
8.1.50.0000.00917.45
8.1.40.0040.00417.27
8.1.30.0060.00317.57
8.1.20.0030.00617.46
8.1.10.0070.00017.45
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0070.00018.49
8.0.270.0040.00417.28
8.0.260.0060.00017.25
8.0.250.0030.00316.98
8.0.240.0040.00417.00
8.0.230.0000.00816.98
8.0.220.0000.00716.89
8.0.210.0030.00317.00
8.0.200.0080.00016.99
8.0.190.0030.00516.88
8.0.180.0030.00516.98
8.0.170.0040.00416.86
8.0.160.0030.00317.00
8.0.150.0050.00316.94
8.0.140.0080.00416.94
8.0.130.0050.00213.24
8.0.120.0040.00416.80
8.0.110.0040.00417.00
8.0.100.0000.00716.79
8.0.90.0040.00416.96
8.0.80.0110.00817.01
8.0.70.0040.00416.98
8.0.60.0040.00416.99
8.0.50.0000.00716.85
8.0.30.0100.00717.06
8.0.20.0110.00817.40
8.0.10.0040.00416.98
8.0.00.0050.01416.70
7.4.330.0000.00515.00
7.4.320.0000.00716.59
7.4.300.0000.00716.46
7.4.290.0060.00316.58
7.4.280.0030.00616.64
7.4.270.0030.00316.55
7.4.260.0000.00716.44
7.4.250.0050.00316.39
7.4.240.0030.00316.48
7.4.230.0000.00616.71
7.4.220.0090.01016.56
7.4.210.0080.01116.55
7.4.200.0030.00316.67
7.4.190.0020.00516.44
7.4.160.0070.00716.60
7.4.150.0090.01317.40
7.4.140.0100.00717.86
7.4.130.0090.00816.51
7.4.120.0120.00516.57
7.4.110.0070.01016.55
7.4.100.0060.01216.35
7.4.90.0100.00716.45
7.4.80.0170.00719.39
7.4.70.0110.00516.54
7.4.60.0070.01016.48
7.4.50.0000.00816.49
7.4.40.0060.01116.52
7.4.30.0170.00416.57
7.4.00.0060.01114.81
7.3.330.0030.00313.20
7.3.320.0020.00213.25
7.3.310.0040.00416.18
7.3.300.0030.00316.24
7.3.290.0000.01416.38
7.3.280.0090.00716.33
7.3.270.0170.00717.40
7.3.260.0040.01216.52
7.3.250.0100.01016.48
7.3.240.0070.01016.35
7.3.230.0070.01316.63
7.3.210.0110.00716.40
7.3.200.0040.01819.39
7.3.190.0070.01016.66
7.3.180.0080.00816.51
7.3.170.0160.00016.67
7.3.160.0030.01316.29
7.3.120.0080.00814.80
7.3.110.0070.01114.51
7.3.100.0120.00314.95
7.3.90.0060.00615.09
7.3.80.0000.01414.50
7.3.70.0000.00914.93
7.3.60.0000.01114.91
7.3.50.0060.00614.91
7.3.40.0080.00014.71
7.3.30.0030.01014.62
7.3.20.0110.00716.61
7.3.10.0100.00716.78
7.3.00.0090.00016.61
7.2.330.0060.01416.48
7.2.320.0120.01416.70
7.2.310.0130.01016.69
7.2.300.0100.01016.34
7.2.290.0090.00916.37
7.2.250.0040.01214.95
7.2.240.0130.00714.89
7.2.230.0120.00315.23
7.2.220.0070.00715.25
7.2.210.0030.01214.66
7.2.200.0100.00715.09
7.2.190.0070.01114.88
7.2.180.0090.00314.74
7.2.170.0070.00715.22
7.2.60.0040.00816.87
7.2.00.0000.01419.44
7.1.330.0090.00615.67
7.1.320.0040.00915.47
7.1.310.0100.00315.64
7.1.300.0030.01515.74
7.1.290.0030.00915.86
7.1.280.0040.01115.81
7.1.270.0060.01015.63
7.1.260.0090.00015.48
7.1.200.0030.00715.79
7.1.100.0040.00717.95
7.1.70.0000.02117.20
7.1.60.0100.01319.46
7.1.50.0170.01016.63
7.1.00.0030.07722.50
7.0.200.0000.00716.64
7.0.140.0030.07022.07
7.0.60.0100.07719.91
7.0.50.0100.08017.81
7.0.40.0070.04020.20
7.0.30.0300.04720.04
7.0.20.0200.04020.20
7.0.10.0170.08020.13
7.0.00.0070.04320.16
5.6.280.0030.07321.10
5.6.210.0130.07320.56
5.6.200.0070.08018.19
5.6.190.0170.07320.57
5.6.180.0100.07320.41
5.6.170.0130.04320.48
5.6.160.0070.05020.61
5.6.150.0170.07318.13
5.6.140.0000.04318.11
5.6.130.0070.05018.13
5.6.120.0100.05721.00
5.6.110.0100.08021.00
5.6.100.0100.07320.98
5.6.90.0070.04320.96
5.6.80.0030.07020.32
5.5.350.2870.03720.42
5.5.340.0070.07717.98
5.5.330.0030.07720.58
5.5.320.0330.06320.20
5.5.310.0270.04320.24
5.5.300.0100.06718.01
5.5.290.0070.08017.88
5.5.280.0170.07320.86
5.5.270.0170.07720.95
5.5.260.0030.04020.67
5.5.250.0100.08020.61
5.5.240.0030.05320.32
5.4.450.0100.06319.63
5.4.440.0130.07019.10
5.4.430.0270.06019.12
5.4.420.0300.04319.60
5.4.410.0100.06719.45
5.4.400.0170.07018.91
5.4.390.0200.05719.14
5.4.380.0170.06718.60
5.4.370.0370.04718.73
5.4.360.0370.04318.74
5.4.350.0270.05318.70
5.4.340.1500.05318.65
5.4.320.0030.04012.45
5.4.310.0060.04012.45
5.4.300.0060.05312.45
5.4.290.0060.04112.45
5.4.280.0080.03512.34
5.4.270.0060.03812.34
5.4.260.0080.03712.35
5.4.250.0050.04012.35
5.4.240.0050.03912.34
5.4.230.0060.03912.34
5.4.220.0050.03712.34
5.4.210.0050.03712.34
5.4.200.0060.03912.34
5.4.190.0070.03912.34
5.4.180.0090.04512.33
5.4.170.0080.03912.34
5.4.160.0100.03612.34
5.4.150.0040.03912.34
5.4.140.0040.03812.02
5.4.130.0050.03712.01
5.4.120.0080.05111.97
5.4.110.0080.05111.96
5.4.100.0080.04811.96
5.4.90.0080.05611.96
5.4.80.0080.05211.96
5.4.70.0080.05011.96
5.4.60.0100.03611.96
5.4.50.0040.04111.96
5.4.40.0060.05111.95
5.4.30.0100.04911.95
5.4.20.0110.04511.95
5.4.10.0090.05011.94
5.4.00.0080.05011.43
5.3.290.0070.05312.80
5.3.280.0120.06512.71
5.3.270.0090.04312.72
5.3.260.0090.04212.72
5.3.250.0060.05612.72
5.3.240.0120.06312.72
5.3.230.0070.03812.70
5.3.220.0060.03912.68
5.3.210.0040.04112.68
5.3.200.0070.03812.68
5.3.190.0090.03612.68
5.3.180.0050.03812.68
5.3.170.0070.03612.67
5.3.160.0090.03412.67
5.3.150.0040.04012.68
5.3.140.0110.04512.66
5.3.130.0050.04012.66
5.3.120.0040.04112.66
5.3.110.0060.04112.66
5.3.100.0050.03912.11
5.3.90.0080.04112.09
5.3.80.0090.04912.08
5.3.70.0080.05012.07
5.3.60.0100.04412.07
5.3.50.0040.04012.00
5.3.40.0080.03712.00
5.3.30.0090.03511.94
5.3.20.0070.03511.72
5.3.10.0090.03511.69
5.3.00.0080.03711.68
5.2.170.0080.0429.18
5.2.160.0070.0449.18
5.2.150.0080.0439.18
5.2.140.0080.0429.18
5.2.130.0090.0379.13
5.2.120.0070.0289.14
5.2.110.0090.0329.14
5.2.100.0070.0299.13
5.2.90.0040.0329.13
5.2.80.0050.0339.13
5.2.70.0050.0329.13
5.2.60.0080.0289.09
5.2.50.0030.0329.05
5.2.40.0020.0339.04
5.2.30.0030.0339.00
5.2.20.0050.0289.01
5.2.10.0050.0308.91
5.2.00.0040.0308.77
5.1.60.0040.0248.06
5.1.50.0060.0248.05
5.1.40.0060.0258.04
5.1.30.0040.0308.39
5.1.20.0050.0328.41
5.1.10.0040.0288.13
5.1.00.0030.0298.13
5.0.50.0030.0216.61
5.0.40.0050.0176.47
5.0.30.0060.0286.29
5.0.20.0030.0196.26
5.0.10.0070.0176.23
5.0.00.0040.0316.22
4.4.90.0040.0154.78
4.4.80.0040.0144.76
4.4.70.0010.0174.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0010.0274.70
4.4.30.0050.0144.76
4.4.20.0030.0154.84
4.4.10.0050.0154.85
4.4.00.0040.0254.75
4.3.110.0040.0164.67
4.3.100.0030.0154.67
4.3.90.0020.0154.63
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0040.0144.63
4.3.50.0030.0234.62
4.3.40.0040.0324.54
4.3.30.0030.0223.28
4.3.20.0020.0223.25
4.3.10.0020.0223.22
4.3.00.0030.0239.23

preferences:
38.43 ms | 401 KiB | 5 Q