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.0150.00016.75
8.3.50.0120.00921.88
8.3.40.0120.00618.79
8.3.30.0140.00718.92
8.3.20.0070.00020.04
8.3.10.0000.00823.61
8.3.00.0030.00520.81
8.2.180.0070.00718.05
8.2.170.0060.00822.96
8.2.160.0030.01020.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0030.00620.91
8.2.110.0000.01119.27
8.2.100.0060.00617.84
8.2.90.0080.00019.29
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0000.00820.07
8.2.30.0070.00018.25
8.2.20.0000.00717.66
8.2.10.0070.00018.04
8.2.00.0040.00417.70
8.1.280.0100.01325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.55
8.1.230.0070.00317.77
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0030.00518.38
8.1.160.0060.00322.01
8.1.150.0040.00418.62
8.1.140.0000.00717.46
8.1.130.0000.00717.83
8.1.120.0040.00417.33
8.1.110.0020.00517.38
8.1.100.0040.00417.33
8.1.90.0070.00017.49
8.1.80.0000.00817.35
8.1.70.0000.00717.32
8.1.60.0060.00317.60
8.1.50.0000.00717.52
8.1.40.0000.00817.50
8.1.30.0050.00517.63
8.1.20.0000.00717.67
8.1.10.0030.00517.55
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00717.30
8.0.260.0070.00017.25
8.0.250.0030.00316.95
8.0.240.0000.00816.97
8.0.230.0040.00416.95
8.0.220.0040.00316.86
8.0.210.0000.00816.86
8.0.200.0070.00016.96
8.0.190.0000.00716.85
8.0.180.0070.00016.93
8.0.170.0030.00616.95
8.0.160.0040.00417.00
8.0.150.0000.00716.81
8.0.140.0000.00716.93
8.0.130.0000.00713.38
8.0.120.0070.00316.75
8.0.110.0070.00016.87
8.0.100.0000.00816.67
8.0.90.0050.00316.77
8.0.80.0090.00616.90
8.0.70.0040.00416.76
8.0.60.0000.00716.96
8.0.50.0040.00416.94
8.0.30.0150.00416.98
8.0.20.0120.01317.40
8.0.10.0040.00417.07
8.0.00.0100.00716.91
7.4.330.0030.00315.07
7.4.320.0030.00316.50
7.4.300.0060.00016.54
7.4.290.0080.00016.62
7.4.280.0030.00316.51
7.4.270.0040.00416.64
7.4.260.0040.00416.56
7.4.250.0000.00716.61
7.4.240.0030.00416.48
7.4.230.0000.00716.39
7.4.220.0120.00616.52
7.4.210.0060.00816.59
7.4.200.0030.00616.63
7.4.160.0160.00616.40
7.4.150.0060.01317.40
7.4.140.0140.00717.86
7.4.130.0090.00816.47
7.4.120.0110.00716.47
7.4.110.0130.01016.53
7.4.100.0090.00916.60
7.4.90.0160.00016.48
7.4.80.0170.00719.39
7.4.70.0000.01616.53
7.4.60.0070.01516.41
7.4.50.0040.00416.34
7.4.40.0070.01016.39
7.4.30.0030.01316.61
7.4.00.0060.00915.05
7.3.330.0000.00713.11
7.3.320.0000.00613.06
7.3.310.0000.00716.27
7.3.300.0030.00316.18
7.3.290.0060.01216.17
7.3.280.0080.01116.23
7.3.270.0110.00617.40
7.3.260.0120.00616.54
7.3.250.0140.00416.50
7.3.240.0080.00816.40
7.3.230.0030.01416.54
7.3.210.0100.01316.18
7.3.200.0060.01119.39
7.3.190.0100.01016.54
7.3.180.0190.00016.24
7.3.170.0030.01216.43
7.3.160.0130.00316.51
7.3.120.0030.01314.90
7.2.330.0090.00916.71
7.2.320.0140.00316.73
7.2.310.0060.01216.59
7.2.300.0030.01316.49
7.2.290.0060.01216.49
7.1.200.0130.00215.30
7.1.70.0030.00317.14
7.1.60.0110.01419.70
7.1.50.0090.01216.87
7.1.00.0100.07022.40
7.0.200.0140.00414.91
7.0.140.0030.06721.92
7.0.60.0100.08020.00
7.0.50.0070.08017.90
7.0.40.0070.08320.13
7.0.30.0300.06020.30
7.0.20.0230.07720.01
7.0.10.0130.06720.16
7.0.00.0100.04320.31
5.6.280.0030.07321.06
5.6.210.0100.07720.74
5.6.200.0130.07718.12
5.6.190.0070.04020.41
5.6.180.3870.03720.48
5.6.170.0170.04320.33
5.6.160.0000.09720.41
5.6.150.0070.07318.22
5.6.140.0170.06318.09
5.6.130.0070.04718.05
5.6.120.0100.07721.12
5.6.110.0130.07020.98
5.6.100.0070.07321.11
5.6.90.0070.08720.94
5.6.80.0070.05720.40
5.6.70.3800.04020.50
5.5.350.0230.07320.32
5.5.340.0070.04317.98
5.5.330.0000.05020.40
5.5.320.3030.04020.51
5.5.310.0300.06020.26
5.5.300.0100.07317.97
5.5.290.0070.06317.98
5.5.280.0030.04320.73
5.5.270.0100.06320.94
5.5.260.0030.06720.88
5.5.250.0170.05720.58
5.5.240.0270.06720.03
5.4.450.0370.04728.29
5.4.440.0200.04328.28
5.4.430.0230.04728.28
5.4.420.0400.04328.28
5.4.410.0300.04328.28
5.4.400.0630.04727.85
5.4.390.0430.04327.55
5.4.380.0200.04718.59
5.4.370.0170.04718.48
5.4.360.0130.05018.68
5.4.350.0130.05318.58
5.4.340.0100.05318.67
5.4.320.0030.04012.46
5.4.310.0060.05112.45
5.4.300.0060.05312.45
5.4.290.0120.04512.45
5.4.280.0060.03712.35
5.4.270.0080.03612.35
5.4.260.0090.03712.35
5.4.250.0050.04112.35
5.4.240.0050.03912.35
5.4.230.0060.03712.34
5.4.220.0080.04112.34
5.4.210.0080.04712.34
5.4.200.0130.04212.34
5.4.190.0110.04512.34
5.4.180.0060.04012.34
5.4.170.0070.03712.35
5.4.160.0040.03812.34
5.4.150.0050.03712.34
5.4.140.0050.03812.02
5.4.130.0040.03812.01
5.4.120.0060.03511.97
5.4.110.0090.03211.97
5.4.100.0030.03811.96
5.4.90.0100.03311.96
5.4.80.0060.03711.97
5.4.70.0060.03511.96
5.4.60.0080.03311.96
5.4.50.0080.04811.96
5.4.40.0080.04111.95
5.4.30.0060.03511.95
5.4.20.0070.03511.95
5.4.10.0090.03211.94
5.4.00.0070.03611.44
5.3.290.0060.03912.80
5.3.280.0130.03012.71
5.3.270.0110.03512.72
5.3.260.0080.03812.72
5.3.250.0090.03512.72
5.3.240.0100.03312.72
5.3.230.0070.03712.70
5.3.220.0090.03412.68
5.3.210.0070.03812.68
5.3.200.0100.03312.68
5.3.190.0090.03712.68
5.3.180.0110.03512.67
5.3.170.0100.03412.67
5.3.160.0060.03712.67
5.3.150.0050.04212.67
5.3.140.0110.03812.66
5.3.130.0120.03912.66
5.3.120.0090.03912.66
5.3.110.0080.03912.65
5.3.100.0070.03912.12
5.3.90.0120.04212.09
5.3.80.0110.05312.07
5.3.70.0130.05012.07
5.3.60.0270.09712.07
5.3.50.0220.09912.00
5.3.40.0090.03412.00
5.3.30.0100.04911.95
5.3.20.0040.04611.72
5.3.10.0120.03811.69
5.3.00.0150.04211.68
5.2.170.0090.0579.18
5.2.160.0080.0409.18
5.2.150.0060.0429.18
5.2.140.0060.0469.18
5.2.130.0100.0559.14
5.2.120.0200.0529.14
5.2.110.0060.0439.14
5.2.100.0070.0449.14
5.2.90.0070.0399.14
5.2.80.0100.0389.13
5.2.70.0040.0439.14
5.2.60.0080.0439.08
5.2.50.0050.0419.05
5.2.40.0130.0429.03
5.2.30.0110.0279.01
5.2.20.0050.0309.00
5.2.10.0090.0298.92
5.2.00.0080.0288.78
5.1.60.0060.0278.07
5.1.50.0070.0278.06
5.1.40.0060.0298.04
5.1.30.0040.0318.39
5.1.20.0060.0318.41
5.1.10.0060.0328.14
5.1.00.0110.0338.14
5.0.50.0070.0196.62
5.0.40.0090.0216.48
5.0.30.0060.0386.29
5.0.20.0050.0256.26
5.0.10.0030.0296.24
5.0.00.0060.0396.23
4.4.90.0040.0214.78
4.4.80.0060.0194.75
4.4.70.0020.0234.75
4.4.60.0050.0174.75
4.4.50.0030.0194.77
4.4.40.0030.0274.71
4.4.30.0030.0194.76
4.4.20.0030.0194.85
4.4.10.0050.0174.84
4.4.00.0040.0314.76
4.3.110.0030.0224.67
4.3.100.0020.0224.67
4.3.90.0040.0214.63
4.3.80.0020.0324.59
4.3.70.0050.0184.63
4.3.60.0050.0184.63
4.3.50.0020.0234.63
4.3.40.0020.0324.53
4.3.30.0030.0203.28
4.3.20.0020.0213.26
4.3.10.0000.0233.23
4.3.00.0070.01727.24

preferences:
39.45 ms | 400 KiB | 5 Q