3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reply_v = json_decode('{"ok":true,"image":"614410023999338.jpg"}', true); if($reply_v['ok'] != 1 || $reply_v['image'] != "614410023999338.jpg") { throw new Exception("Image upload failed: ".$reply); } echo "ok";

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.0110.00316.63
8.3.50.0120.01021.99
8.3.40.0070.01118.67
8.3.30.0110.00419.22
8.3.20.0000.00720.20
8.3.10.0050.00323.60
8.3.00.0080.00020.81
8.2.180.0120.00318.54
8.2.170.0150.00022.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.86
8.2.110.0060.00322.25
8.2.100.0080.00419.64
8.2.90.0000.00719.36
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0000.01017.92
8.2.50.0050.00318.07
8.2.40.0040.00420.07
8.2.30.0000.00818.19
8.2.20.0000.00817.75
8.2.10.0080.00018.14
8.2.00.0000.00817.75
8.1.280.0140.00725.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00418.89
8.1.230.0070.00419.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.41
8.1.160.0030.00321.89
8.1.150.0000.00818.69
8.1.140.0050.00317.50
8.1.130.0000.00817.87
8.1.120.0000.00717.38
8.1.110.0040.00417.43
8.1.100.0000.00717.50
8.1.90.0030.00517.48
8.1.80.0070.00017.45
8.1.70.0030.00317.43
8.1.60.0050.00217.59
8.1.50.0030.00617.40
8.1.40.0060.00317.51
8.1.30.0060.00317.61
8.1.20.0080.00017.51
8.1.10.0040.00417.47
8.1.00.0070.00017.55
8.0.300.0000.00718.77
8.0.290.0000.00717.28
8.0.280.0030.00518.42
8.0.270.0070.00017.30
8.0.260.0030.00317.20
8.0.250.0000.00716.86
8.0.240.0000.00816.82
8.0.230.0000.00716.84
8.0.220.0030.00316.73
8.0.210.0040.00416.80
8.0.200.0040.00416.93
8.0.190.0000.00716.94
8.0.180.0040.00416.81
8.0.170.0050.00316.82
8.0.160.0030.00516.89
8.0.150.0000.00716.77
8.0.140.0000.00716.76
8.0.130.0050.00313.29
8.0.120.0090.00016.91
8.0.110.0040.00416.88
8.0.100.0040.00416.96
8.0.90.0080.00016.78
8.0.80.0060.00916.89
8.0.70.0000.00716.90
8.0.60.0050.00216.93
8.0.50.0040.00416.72
8.0.30.0100.01417.30
8.0.20.0120.00917.40
8.0.10.0000.00716.86
8.0.00.0050.01116.59
7.4.330.0050.00015.14
7.4.320.0030.00316.51
7.4.300.0030.00316.65
7.4.290.0030.00616.39
7.4.280.0030.00316.40
7.4.270.0040.00416.66
7.4.260.0000.00716.57
7.4.250.0040.00416.45
7.4.240.0020.00516.49
7.4.230.0000.00716.63
7.4.220.0140.00416.66
7.4.210.0070.00716.43
7.4.200.0000.00716.63
7.4.160.0080.00816.65
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0120.00716.55
7.4.120.0140.00416.41
7.4.110.0120.00616.42
7.4.100.0070.01416.42
7.4.90.0070.01016.61
7.4.80.0030.01719.39
7.4.70.0080.00816.47
7.4.60.0110.00616.50
7.4.50.0060.00316.46
7.4.40.0100.00716.56
7.4.30.0090.00916.63
7.4.00.0100.00614.82
7.3.330.0040.00413.07
7.3.320.0000.00613.25
7.3.310.0000.00716.11
7.3.300.0040.00416.30
7.3.290.0100.00316.29
7.3.280.0090.00816.22
7.3.270.0130.00317.40
7.3.260.0090.00916.54
7.3.250.0100.00816.38
7.3.240.0060.01016.49
7.3.230.0220.00016.39
7.3.210.0120.00816.17
7.3.200.0040.01319.39
7.3.190.0060.01216.36
7.3.180.0060.01016.29
7.3.170.0120.00316.30
7.3.160.0070.01016.23
7.3.120.0040.00714.39
7.3.10.0050.00716.61
7.3.00.0050.00916.50
7.2.330.0070.01116.67
7.2.320.0070.01016.53
7.2.310.0140.00616.61
7.2.300.0160.00616.61
7.2.290.0160.00016.43
7.2.130.0080.00816.79
7.2.120.0080.00616.71
7.2.110.0060.00916.84
7.2.100.0040.01216.62
7.2.90.0170.00716.78
7.2.80.0040.01016.77
7.2.70.0130.01016.87
7.2.60.0050.01016.82
7.2.50.0140.00716.88
7.2.40.0070.00716.92
7.2.30.0060.00916.79
7.2.20.0120.00516.77
7.2.10.0090.00416.65
7.2.00.0040.00516.75
7.1.250.0020.01115.68
7.1.70.0030.00616.84
7.1.60.0060.01619.70
7.1.50.0160.01316.78
7.1.00.0030.06722.43
7.0.200.0090.00614.65
7.0.140.0030.06722.09
7.0.60.0070.03719.91
7.0.50.0130.07717.77
7.0.40.0030.04719.96
7.0.30.0200.08020.09
7.0.20.0200.03720.34
7.0.10.0070.09320.17
7.0.00.0070.08720.00
5.6.280.0000.07721.12
5.6.210.0100.07720.66
5.6.200.0100.03318.17
5.6.190.0100.05020.64
5.6.180.3200.04020.60
5.6.170.0370.07720.44
5.6.160.0130.07720.51
5.6.150.0030.04018.12
5.6.140.0070.07718.15
5.6.130.0070.06018.22
5.6.120.0070.04021.04
5.6.110.0070.06020.89
5.6.100.0200.07321.13
5.6.90.0000.04720.97
5.6.80.0000.04320.42
5.6.70.4270.03720.47
5.5.350.0130.03320.41
5.5.340.0170.06317.88
5.5.330.0000.06320.28
5.5.320.3370.04320.25
5.5.310.0270.08020.21
5.5.300.0100.07017.96
5.5.290.0030.04317.95
5.5.280.0200.05020.87
5.5.270.0100.07720.76
5.5.260.0100.08320.86
5.5.250.0030.08720.49
5.5.240.0400.04720.18
5.4.450.0200.04028.29
5.4.440.0300.04028.28
5.4.430.0400.04028.28
5.4.420.0270.04028.28
5.4.410.0330.02728.28
5.4.400.0800.04027.85
5.4.390.0270.04327.55
5.4.380.0100.06018.48
5.4.370.0200.07018.78
5.4.360.0070.05718.61
5.4.350.0200.04718.58
5.4.340.0200.04718.57
5.4.320.0040.04012.46
5.4.310.0060.03912.46
5.4.300.0090.03812.46
5.4.290.0060.03712.45
5.4.280.0080.03312.35
5.4.270.0080.03412.35
5.4.260.0080.03612.35
5.4.250.0020.04312.35
5.4.240.0050.03712.35
5.4.230.0060.03712.34
5.4.220.0070.03512.34
5.4.210.0060.03512.34
5.4.200.0040.03912.34
5.4.190.0060.03512.34
5.4.180.0110.03612.34
5.4.170.0040.03812.35
5.4.160.0070.03812.34
5.4.150.0030.03912.34
5.4.140.0050.03912.03
5.4.130.0080.03312.01
5.4.120.0060.03511.97
5.4.110.0060.03411.97
5.4.100.0070.03411.97
5.4.90.0050.03811.96
5.4.80.0080.03411.96
5.4.70.0070.04111.96
5.4.60.0080.03411.96
5.4.50.0060.03511.96
5.4.40.0060.03511.95
5.4.30.0060.03511.95
5.4.20.0070.03411.95
5.4.10.0060.03611.95
5.4.00.0090.03611.44
5.3.290.0050.04012.80
5.3.280.0110.03912.70
5.3.270.0070.05212.72
5.3.260.0060.05212.72
5.3.250.0050.04012.72
5.3.240.0100.03412.72
5.3.230.0060.04212.71
5.3.220.0120.03612.68
5.3.210.0080.03812.68
5.3.200.0100.03412.68
5.3.190.0050.03912.68
5.3.180.0080.03512.67
5.3.170.0050.04012.66
5.3.160.0080.03812.67
5.3.150.0090.04012.67
5.3.140.0090.04912.66
5.3.130.0060.05512.66
5.3.120.0050.04112.66
5.3.110.0100.03612.66
5.3.100.0070.04512.12
5.3.90.0110.04612.09
5.3.80.0040.04212.08
5.3.70.0060.03812.08
5.3.60.0040.04212.06
5.3.50.0060.03612.00
5.3.40.0060.03812.00
5.3.30.0080.03411.95
5.3.20.0080.03411.73
5.3.10.0060.03511.69
5.3.00.0060.03611.68
5.2.170.0050.0309.18
5.2.160.0030.0329.18
5.2.150.0040.0329.18
5.2.140.0060.0309.17
5.2.130.0050.0309.14
5.2.120.0060.0289.13
5.2.110.0020.0319.14
5.2.100.0050.0299.14
5.2.90.0050.0289.14
5.2.80.0050.0299.13
5.2.70.0030.0329.14
5.2.60.0060.0299.09
5.2.50.0060.0289.05
5.2.40.0110.0229.03
5.2.30.0090.0269.01
5.2.20.0100.0249.00
5.2.10.0100.0228.92
5.2.00.0030.0308.78
5.1.60.0070.0228.07
5.1.50.0090.0208.06
5.1.40.0060.0228.04
5.1.30.0080.0228.39
5.1.20.0050.0288.41
5.1.10.0080.0228.14
5.1.00.0050.0248.14
5.0.50.0030.0216.62
5.0.40.0030.0196.48
5.0.30.0030.0326.29
5.0.20.0030.0206.26
5.0.10.0040.0206.24
5.0.00.0020.0326.23
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0020.0164.85
4.4.00.0060.0224.76
4.3.110.0050.0134.67
4.3.100.0040.0134.66
4.3.90.0020.0154.64
4.3.80.0040.0234.58
4.3.70.0020.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0020.0163.29
4.3.20.0030.0153.26
4.3.10.0030.0143.22
4.3.00.0100.01327.24

preferences:
40.24 ms | 401 KiB | 5 Q