3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n"; $fp = fopen('php://stdin', 'r'); $data = ['a' => $fp]; echo json_encode($data), "\n"; echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n";

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.70.0090.00918.28
8.3.60.0120.00316.63
8.3.50.0130.00822.13
8.3.40.0090.01318.87
8.3.30.0130.01318.85
8.3.20.0040.00421.87
8.3.10.0080.00018.76
8.3.00.0050.00321.73
8.2.190.0090.00920.56
8.2.180.0130.00916.88
8.2.170.0150.00022.96
8.2.160.0100.00319.50
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.03
8.2.120.0000.00826.35
8.2.110.0080.00321.04
8.2.100.0110.00017.97
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0060.00318.16
8.2.60.0000.00818.05
8.2.50.0040.00818.16
8.2.40.0000.00819.30
8.2.30.0000.00719.30
8.2.20.0040.00418.18
8.2.10.0070.00018.17
8.2.00.0040.00417.63
8.1.280.0170.00325.92
8.1.270.0060.00323.83
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.00419.14
8.1.230.0110.00017.83
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00722.13
8.1.150.0000.00718.89
8.1.140.0040.00419.45
8.1.130.0070.00017.50
8.1.120.0040.00417.37
8.1.110.0000.00717.33
8.1.100.0060.00317.43
8.1.90.0040.00417.46
8.1.80.0000.00717.51
8.1.70.0030.00317.38
8.1.60.0040.00417.59
8.1.50.0040.00417.48
8.1.40.0000.00817.53
8.1.30.0030.00517.49
8.1.20.0020.00517.49
8.1.10.0040.00417.53
8.1.00.0090.00317.36
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0040.00318.42
8.0.270.0000.00717.38
8.0.260.0070.00016.86
8.0.250.0070.00016.91
8.0.240.0000.00717.05
8.0.230.0030.00316.95
8.0.220.0040.00416.94
8.0.210.0000.00616.84
8.0.200.0030.00317.03
8.0.190.0060.00317.02
8.0.180.0080.00016.98
8.0.170.0040.00416.91
8.0.160.0050.00316.85
8.0.150.0030.00316.95
8.0.140.0060.00316.91
8.0.130.0030.00313.31
8.0.120.0000.00716.90
8.0.110.0060.00316.97
8.0.100.0030.00516.74
8.0.90.0040.00416.77
8.0.80.0070.01016.87
8.0.70.0040.00416.96
8.0.60.0030.00516.96
8.0.50.0080.00017.07
8.0.30.0110.00917.06
8.0.20.0110.00917.40
8.0.10.0040.00416.83
8.0.00.0100.01016.82
7.4.330.0040.00015.21
7.4.320.0030.00316.50
7.4.300.0070.00016.43
7.4.290.0050.00316.49
7.4.280.0060.00316.59
7.4.270.0000.00716.67
7.4.260.0000.00716.39
7.4.250.0000.00816.46
7.4.240.0000.00716.52
7.4.230.0000.00716.49
7.4.220.0120.01516.52
7.4.210.0090.00916.64
7.4.200.0030.00316.25
7.4.160.0090.00716.49
7.4.150.0150.00317.40
7.4.140.0080.00917.86
7.4.130.0120.00616.49
7.4.120.0120.00516.62
7.4.110.0070.01016.51
7.4.100.0100.01416.56
7.4.90.0170.01416.50
7.4.80.0120.00619.39
7.4.70.0090.00616.54
7.4.60.0110.01116.57
7.4.50.0120.00416.55
7.4.40.0070.01016.70
7.4.30.0090.00616.40
7.4.10.0160.00315.14
7.4.00.0110.00614.81
7.3.330.0060.00013.13
7.3.320.0000.00513.08
7.3.310.0000.00716.42
7.3.300.0030.00316.32
7.3.290.0000.00716.18
7.3.280.0070.01116.37
7.3.270.0100.00717.40
7.3.260.0110.00916.58
7.3.250.0090.01016.46
7.3.240.0140.00316.49
7.3.230.0130.00416.42
7.3.210.0100.00616.21
7.3.200.0100.00716.42
7.3.190.0100.00716.50
7.3.180.0030.01416.30
7.3.170.0000.01816.27
7.3.160.0000.01616.61
7.3.130.0030.01614.91
7.3.120.0070.01014.82
7.3.110.0070.01014.59
7.3.100.0040.00714.81
7.3.90.0000.00914.79
7.3.80.0000.01115.08
7.3.70.0120.00014.82
7.3.60.0000.01214.85
7.3.50.0050.00514.76
7.3.40.0000.01014.89
7.3.30.0000.01114.73
7.3.20.0060.00616.61
7.3.10.0030.01016.44
7.3.00.0070.00416.49
7.2.330.0090.00916.56
7.2.320.0060.01216.71
7.2.310.0110.00816.66
7.2.300.0120.00916.74
7.2.290.0060.01216.68
7.2.260.0030.01214.66
7.2.250.0080.00814.88
7.2.240.0030.01015.07
7.2.230.0030.01414.98
7.2.220.0000.01715.20
7.2.210.0060.00315.20
7.2.200.0040.01215.06
7.2.190.0090.00315.14
7.2.180.0130.00014.93
7.2.170.0110.00414.94
7.2.160.0040.00714.93
7.2.150.0030.00616.84
7.2.140.0030.00916.79
7.2.130.0030.01016.85
7.2.120.0080.00316.94
7.2.110.0050.00516.89
7.2.100.0000.01416.63
7.2.90.0000.01516.84
7.2.80.0130.00616.93
7.2.70.0060.00916.95
7.2.60.0070.00816.76
7.2.50.0070.00716.79
7.2.40.0030.01016.96
7.2.30.0040.01116.71
7.2.20.0140.00016.70
7.2.10.0070.00716.96
7.2.00.0030.00818.26
7.1.330.0060.00616.00
7.1.320.0000.01215.51
7.1.310.0040.00815.78
7.1.300.0060.00615.74
7.1.290.0070.01015.76
7.1.280.0100.00315.77
7.1.270.0000.01215.57
7.1.260.0060.00815.86
7.1.250.0030.00615.62
7.1.240.0030.01015.61
7.1.230.0000.01315.66
7.1.220.0000.01015.71
7.1.210.0120.00315.52
7.1.200.0120.00115.82
7.1.190.0070.00715.82
7.1.180.0040.01115.78
7.1.170.0120.00615.90
7.1.160.0040.00715.72
7.1.150.0030.00915.79
7.1.140.0000.01115.64
7.1.130.0030.00615.77
7.1.120.0080.00315.84
7.1.110.0000.01215.77
7.1.100.0000.01515.84
7.1.90.0000.01315.76
7.1.80.0100.00715.79
7.1.70.0040.00716.51
7.1.60.0030.01116.56
7.1.50.0020.00816.41
7.1.40.0080.00316.19
7.1.30.0050.00716.16
7.1.20.0020.00916.08
7.1.10.0080.00416.08
7.1.00.0060.00416.19
7.0.330.0030.01015.34
7.0.320.0090.00315.42
7.0.310.0040.00815.42
7.0.300.0060.00615.41
7.0.290.0070.00315.21
7.0.280.0060.00915.35
7.0.270.0030.00615.46
7.0.260.0070.00415.46
7.0.250.0140.00315.57
7.0.240.0040.00715.49
7.0.230.0070.00715.30
7.0.220.0070.00715.39
7.0.210.0030.00915.25
7.0.200.0040.00616.12
7.0.190.0030.00415.92
7.0.180.0030.00515.78
7.0.170.0010.00615.81
7.0.160.0020.01115.91
7.0.150.0070.00415.93
7.0.140.0010.00815.79
7.0.130.0040.00716.05
7.0.120.0060.00316.13
7.0.110.0050.00515.86
7.0.100.0060.00615.80
7.0.90.0050.00415.93
7.0.80.0050.00415.88
7.0.70.0060.00715.86
7.0.60.0040.00915.78
7.0.50.0030.01015.79
7.0.40.0040.00714.08
7.0.30.0040.00914.24
7.0.20.0000.01114.28
7.0.10.0020.00814.18
7.0.00.0030.00714.29
5.6.400.0000.01314.38
5.6.390.0060.00614.28
5.6.380.0090.00614.32
5.6.370.0080.00614.09
5.6.360.0070.00714.27
5.6.350.0030.00714.42
5.6.340.0030.01314.34
5.6.330.0030.00914.33
5.6.320.0030.00914.45
5.6.310.0050.00514.27
5.6.300.0070.02217.54
5.6.290.0050.02817.68
5.6.280.0220.01817.75
5.6.270.0050.02817.69
5.6.260.0160.02117.59
5.6.250.0040.02817.48
5.6.240.0030.02717.54
5.6.230.0090.02117.46
5.6.220.0120.02817.60
5.6.210.0070.02417.37
5.6.200.0020.02717.39
5.6.190.0050.02517.63
5.6.180.0080.02117.53
5.6.170.0050.02317.58
5.6.160.0100.02217.58
5.6.150.0050.02917.61
5.6.140.0080.02417.47
5.6.130.0080.02217.57
5.6.120.0050.02617.48
5.6.110.0070.02517.50
5.6.100.0040.03017.50
5.6.90.0050.02817.65
5.6.80.0100.01617.19
5.6.70.0060.01917.38
5.6.60.0030.02617.07
5.6.50.0080.02217.26
5.6.40.0060.02617.09
5.6.30.0030.02717.45
5.6.20.0030.02417.07
5.6.10.0050.02017.38
5.6.00.0050.02717.15
5.5.380.0000.04317.45
5.5.370.0000.04517.61
5.5.360.0030.04017.48
5.5.350.0400.03317.45
5.5.340.0030.03918.07
5.5.330.0030.05417.94
5.5.320.0060.04518.11
5.5.310.0030.04218.02
5.5.300.0030.04317.96
5.5.290.0000.06017.89
5.5.280.0030.03917.74
5.5.270.0070.04117.97
5.5.260.0000.04817.93
5.5.250.0030.04017.84
5.5.240.0070.05717.41
5.5.230.0060.03617.23
5.5.220.0030.04717.44
5.5.210.0090.04417.40
5.5.200.0030.04017.39
5.5.190.0030.04217.32
5.5.180.0030.04617.38
5.5.160.0000.04117.41
5.5.150.0030.03817.39
5.5.140.0070.03417.37
5.5.130.0000.04317.37
5.5.120.0000.03917.46
5.5.110.0000.04117.40
5.5.100.0000.03917.37
5.5.90.0070.04717.31
5.5.80.0030.03817.27
5.5.70.0030.04417.11
5.5.60.0030.04417.30
5.5.50.0030.08117.18
5.5.40.0030.04517.28
5.5.30.0000.04017.09
5.5.20.0030.05017.26
5.5.10.0060.03817.27
5.5.00.0000.04217.22
5.4.450.0060.04219.34
5.4.440.0070.04319.35
5.4.430.0060.03819.18
5.4.420.0030.04119.49
5.4.410.0070.03719.02
5.4.400.0060.03219.14
5.4.390.0000.04319.06
5.4.380.0000.04218.93
5.4.370.0060.03519.06
5.4.360.0030.03619.07
5.4.350.0030.03719.16
5.4.340.0100.03718.99
5.4.320.0000.04819.03
5.4.310.0060.03419.05
5.4.300.0070.03319.06
5.4.290.0000.04419.00
5.4.280.0000.04218.88
5.4.270.0030.04019.01
5.4.260.0030.04519.07
5.4.250.0040.03619.09
5.4.240.0030.05319.05
5.4.230.0000.04319.13
5.4.220.0060.03518.87
5.4.210.0000.04619.05
5.4.200.0060.03819.13
5.4.190.0030.04419.13
5.4.180.0070.03418.93
5.4.170.0030.04318.90
5.4.160.0000.04018.81
5.4.150.0100.03818.96
5.4.140.0070.03716.41
5.4.130.0000.03616.43
5.4.120.0000.03816.45
5.4.110.0030.03716.71
5.4.100.0030.03316.64
5.4.90.0030.03716.61
5.4.80.0070.04016.62
5.4.70.0030.03316.37
5.4.60.0070.03916.39
5.4.50.0030.04316.46
5.4.40.0000.04116.44
5.4.30.0070.05516.68
5.4.20.0000.03916.32
5.4.10.0000.04216.43
5.4.00.0000.03815.86
5.3.290.0060.04215.00
5.3.280.0070.03215.00
5.3.270.0030.04015.00
5.3.260.0030.03715.00
5.3.250.0030.03815.00
5.3.240.0070.03915.00
5.3.230.0000.04415.00
5.3.220.0200.03615.00
5.3.210.0070.03315.00
5.3.200.0060.03415.00
5.3.190.0030.03715.00
5.3.180.0070.03615.00
5.3.170.0000.05015.00
5.3.160.0070.04315.00
5.3.150.0030.04115.00
5.3.140.0000.04015.00
5.3.130.0030.04415.00
5.3.120.0000.04515.00
5.3.110.0000.04015.00
5.3.100.0190.04215.00
5.3.90.0030.05315.00
5.3.80.0030.03415.00
5.3.70.0000.04615.00
5.3.60.0060.03215.00
5.3.50.0000.04115.00
5.3.40.0000.04115.00
5.3.30.0030.04515.00
5.3.20.0000.03715.00
5.3.10.0000.03815.00
5.3.00.0000.04015.00
5.2.170.0030.02915.00
5.2.160.0030.03215.00
5.2.150.0070.03015.00
5.2.140.0040.02915.00
5.2.130.0000.03315.00
5.2.120.0000.03415.00
5.2.110.0000.03415.00
5.2.100.0000.04915.00
5.2.90.0000.03015.00
5.2.80.0000.03215.00
5.2.70.0090.03015.00
5.2.60.0030.03215.00
5.2.50.0030.03015.00
5.2.40.0040.02815.00
5.2.30.0000.03215.00
5.2.20.0030.02815.00
5.2.10.0030.03315.00
5.2.00.0030.03015.00
5.1.60.0090.02015.00
5.1.50.0000.02715.00
5.1.40.0030.02815.00
5.1.30.0040.02515.00
5.1.20.0060.02315.00
5.1.10.0030.02515.00
5.1.00.0000.02915.00
5.0.50.0000.02615.00
5.0.40.0000.02115.00
5.0.30.0000.03515.00
5.0.20.0000.02015.00
5.0.10.0030.01715.00
5.0.00.0000.03115.00
4.4.90.0000.01815.00
4.4.80.0000.02215.00
4.4.70.0070.01015.00
4.4.60.0000.01815.00
4.4.50.0040.01315.00
4.4.40.0040.02215.00
4.4.30.0000.01715.00
4.4.20.0000.01715.00
4.4.10.0000.01615.00
4.4.00.0030.02215.00
4.3.110.0000.01715.00
4.3.100.0000.01815.00
4.3.90.0030.01315.00
4.3.80.0000.03015.00
4.3.70.0000.01615.00
4.3.60.0000.01515.00
4.3.50.0030.01315.00
4.3.40.0000.02615.00
4.3.30.0000.01715.00
4.3.20.0030.01515.00
4.3.10.0000.01715.00
4.3.00.0060.01215.00

preferences:
71.11 ms | 401 KiB | 5 Q