3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new Exception(); // This line cause problem :( // Comment it to see the difference. (string) $e; // This line show the clue (PHP Warning: ...). var_export($e); // This line will be affected. var_export(json_encode([$e])); // But This line still OK. var_export(json_encode($e));

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.0170.00316.63
8.3.50.0160.00317.91
8.3.40.0060.01218.48
8.3.30.0030.01018.80
8.3.20.0080.00020.48
8.3.10.0000.00721.86
8.3.00.0060.00321.66
8.2.180.0060.00916.50
8.2.170.0110.00422.96
8.2.160.0030.01020.31
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0050.00319.52
8.2.120.0000.00826.35
8.2.110.0100.00021.03
8.2.100.0110.00019.29
8.2.90.0050.00519.52
8.2.80.0000.00820.43
8.2.70.0080.00018.03
8.2.60.0030.00618.16
8.2.50.0000.00818.10
8.2.40.0000.00719.27
8.2.30.0050.00319.17
8.2.20.0050.00318.05
8.2.10.0000.00718.14
8.2.00.0040.00417.74
8.1.280.0140.00025.92
8.1.270.0050.00523.93
8.1.260.0000.00728.09
8.1.250.0030.00628.09
8.1.240.0030.00622.24
8.1.230.0080.00420.88
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0000.00818.48
8.1.160.0030.00719.03
8.1.150.0040.00418.91
8.1.140.0050.00219.65
8.1.130.0070.00017.32
8.1.120.0070.00017.48
8.1.110.0060.00317.45
8.1.100.0040.00417.51
8.1.90.0000.00717.53
8.1.80.0040.00417.50
8.1.70.0040.00417.53
8.1.60.0030.00617.65
8.1.50.0000.00817.41
8.1.40.0040.00717.57
8.1.30.0000.00817.66
8.1.20.0060.00317.65
8.1.10.0040.00417.58
8.1.00.0000.00817.43
8.0.300.0050.00320.25
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0040.00417.21
8.0.260.0040.00416.84
8.0.250.0030.00316.81
8.0.240.0000.00616.97
8.0.230.0030.00316.98
8.0.220.0000.00916.85
8.0.210.0030.00316.92
8.0.200.0030.00317.02
8.0.190.0090.00016.86
8.0.180.0070.00016.82
8.0.170.0000.01116.95
8.0.160.0000.00816.80
8.0.150.0030.00616.86
8.0.140.0000.00716.93
8.0.130.0040.00413.25
8.0.120.0040.00416.75
8.0.110.0040.00416.96
8.0.100.0000.00816.88
8.0.90.0030.00516.92
8.0.80.0120.00316.86
8.0.70.0000.00716.77
8.0.60.0050.00316.84
8.0.50.0040.00416.90
8.0.30.0120.00717.25
8.0.20.0120.00717.40
8.0.10.0040.00417.14
8.0.00.0140.00416.71
7.4.330.0060.00015.55
7.4.320.0000.00616.64
7.4.300.0100.00016.55
7.4.290.0030.00616.65
7.4.280.0040.00316.52
7.4.270.0000.00716.54
7.4.260.0070.00016.51
7.4.250.0000.00716.56
7.4.240.0030.00516.50
7.4.230.0000.00716.44
7.4.220.0030.01616.69
7.4.210.0100.00716.68
7.4.200.0040.00416.41
7.4.160.0080.01016.46
7.4.150.0060.01217.40
7.4.140.0100.01317.86
7.4.130.0120.00516.56
7.4.120.0130.00716.44
7.4.110.0110.00716.47
7.4.100.0070.01116.38
7.4.90.0100.00716.38
7.4.80.0120.00919.39
7.4.70.0070.01016.58
7.4.60.0060.01016.60
7.4.50.0060.00916.30
7.4.40.0100.00616.29
7.4.30.0090.00916.41
7.4.10.0100.00715.04
7.4.00.0070.01114.84
7.3.330.0000.00713.14
7.3.320.0030.00313.14
7.3.310.0030.00316.07
7.3.300.0070.00016.15
7.3.290.0040.00416.06
7.3.280.0060.01016.20
7.3.270.0030.01517.40
7.3.260.0060.01116.47
7.3.250.0080.01116.37
7.3.240.0110.00716.35
7.3.230.0130.00316.39
7.3.210.0100.01316.41
7.3.200.0130.01016.13
7.3.190.0120.01016.15
7.3.180.0150.00716.41
7.3.170.0090.01516.37
7.3.160.0150.00416.33
7.3.130.0060.01314.67
7.3.120.0060.01214.73
7.3.110.0080.01014.73
7.3.100.0080.00514.70
7.3.90.0060.00814.67
7.3.80.0060.00814.71
7.3.70.0040.00714.63
7.3.60.0050.01114.75
7.3.50.0050.00914.72
7.3.40.0040.00814.70
7.3.30.0030.01014.55
7.3.20.0110.00416.48
7.3.10.0090.00616.43
7.3.00.0210.00516.11
7.2.330.0120.00616.54
7.2.320.0090.01216.67
7.2.310.0070.01016.66
7.2.300.0000.02516.44
7.2.290.0090.00916.71
7.2.260.0160.00315.21
7.2.250.0070.01115.01
7.2.240.0030.01414.90
7.2.230.0100.00615.11
7.2.220.0040.00915.12
7.2.210.0090.00415.02
7.2.200.0070.00915.17
7.2.190.0060.01014.94
7.2.180.0080.00715.03
7.2.170.0060.00615.04
7.2.160.0000.01314.68
7.2.150.0070.00716.85
7.2.140.0070.00716.86
7.2.130.0170.00616.33
7.2.120.0130.00816.24
7.2.110.0140.00616.38
7.2.100.0110.00716.28
7.2.90.0160.00516.40
7.2.80.0160.00616.38
7.2.70.0160.00516.40
7.2.60.0140.00816.38
7.2.50.0180.00616.37
7.2.40.0110.01216.39
7.2.30.0140.00816.54
7.2.20.0140.00716.44
7.2.10.0190.00716.37
7.2.00.0190.00316.78
7.1.330.0060.00715.75
7.1.320.0060.00615.77
7.1.310.0080.00615.79
7.1.300.0070.01015.78
7.1.290.0040.00815.56
7.1.280.0070.00615.77
7.1.270.0050.00715.66
7.1.260.0080.00715.71
7.1.250.0150.00715.22
7.1.240.0140.00815.40
7.1.230.0180.01015.16
7.1.220.0140.00715.22
7.1.210.0180.00815.26
7.1.200.0220.00415.40
7.1.190.0200.00815.29
7.1.180.0160.00715.34
7.1.170.0210.00715.32
7.1.160.0140.00815.37
7.1.150.0220.00815.29
7.1.140.0170.00615.29
7.1.130.0150.00815.20
7.1.120.0160.00615.21
7.1.110.0150.00715.24
7.1.100.0130.00915.81
7.1.90.0230.00515.08
7.1.80.0140.00515.36
7.1.70.0140.00615.61
7.1.60.0140.00815.73
7.1.50.0120.00815.54
7.1.40.0160.00615.28
7.1.30.0110.00815.39
7.1.20.0500.02219.88
7.1.10.0150.00815.05
7.1.00.0180.01716.70
7.0.330.0180.00614.88
7.0.320.0160.01114.95
7.0.310.0200.00514.92
7.0.300.0190.00614.91
7.0.290.0210.00514.98
7.0.280.0150.00614.97
7.0.270.0140.00814.96
7.0.260.0160.00714.85
7.0.250.0160.00615.00
7.0.240.0150.00414.97
7.0.230.0150.00714.98
7.0.220.0150.00714.92
7.0.210.0150.00514.91
7.0.200.0080.00915.35
7.0.190.0090.01214.91
7.0.180.0160.00714.93
7.0.170.0120.00614.91
7.0.160.0090.00814.87
7.0.150.0170.00914.95
7.0.140.0150.00514.89
7.0.130.0190.01716.02
7.0.120.0180.02016.03
7.0.110.0090.02215.85
7.0.100.0170.02015.97
7.0.90.0120.02015.95
7.0.80.0160.01515.93
7.0.70.0130.01815.97
7.0.60.0160.02115.95
7.0.50.0120.01616.03
7.0.40.0110.01914.75
7.0.30.0120.01714.87
7.0.20.0130.01914.70
7.0.10.0130.01914.80
7.0.00.0170.02014.77
5.6.400.0070.00714.20
5.6.390.0000.01414.00
5.6.380.0090.00514.23
5.6.370.0080.00814.43
5.6.360.0060.00614.21
5.6.350.0080.00414.36
5.6.340.0070.00714.38
5.6.330.0080.00814.18
5.6.320.0070.00914.35
5.6.310.0070.00714.27
5.6.300.0070.00814.31
5.6.290.0090.00614.29
5.6.280.0070.00714.49
5.6.270.0060.02115.66
5.6.260.0100.02015.71
5.6.250.0070.01915.72
5.6.240.0080.02415.59
5.6.230.0090.02215.54
5.6.220.0100.01915.53
5.6.210.0090.01915.66
5.6.200.0110.01615.54
5.6.190.0080.01915.50
5.6.180.0080.02115.63
5.6.170.0080.01615.63
5.6.160.0080.01815.54
5.6.150.0090.02015.60
5.6.140.0100.01715.68
5.6.130.0100.01715.54
5.6.120.0080.02215.56
5.6.110.0120.01515.66
5.6.100.0080.02215.59
5.6.90.0080.01615.64
5.6.80.0120.01815.46
5.6.70.0040.02115.49
5.6.60.0110.02315.38
5.6.50.0090.01615.38
5.6.40.0080.02215.53
5.6.30.0090.01415.41
5.6.20.0100.01615.40
5.6.10.0080.02115.50
5.6.00.0080.02115.43

preferences:
56.12 ms | 401 KiB | 5 Q