3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/json'); function returnJSON (string $string, bool $success) { exit(json_encode(['success' => $success, 'message' => $string])); //doesnt print anything } if (true) returnJSON("This message is not printed...", false);

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.0120.00618.36
8.3.50.0220.00018.02
8.3.40.0120.00318.97
8.3.30.0070.00718.54
8.3.20.0030.00519.22
8.3.10.0050.00221.88
8.3.00.0040.00420.75
8.2.180.0140.00718.09
8.2.170.0120.00322.96
8.2.160.0070.00720.68
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.76
8.2.120.0000.00726.35
8.2.110.0090.00022.02
8.2.100.0080.00317.84
8.2.90.0000.00817.88
8.2.80.0090.00017.97
8.2.70.0040.00417.80
8.2.60.0040.00418.09
8.2.50.0050.00318.10
8.2.40.0040.00419.47
8.2.30.0040.00419.11
8.2.20.0000.00718.05
8.2.10.0000.00817.97
8.2.00.0030.00517.69
8.1.280.0070.01025.92
8.1.270.0080.00018.82
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.91
8.1.230.0040.00821.91
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.11
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.35
8.1.160.0070.00018.88
8.1.150.0050.00218.88
8.1.140.0030.00322.24
8.1.130.0030.00622.08
8.1.120.0060.00317.38
8.1.110.0070.00017.41
8.1.100.0040.00417.29
8.1.90.0040.00417.29
8.1.80.0050.00317.40
8.1.70.0030.00317.34
8.1.60.0040.00417.64
8.1.50.0000.00717.52
8.1.40.0040.00417.55
8.1.30.0060.00317.62
8.1.20.0080.00017.59
8.1.10.0040.00417.49
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.24
8.0.270.0000.00717.07
8.0.260.0000.00818.25
8.0.250.0000.00616.83
8.0.240.0000.00616.80
8.0.230.0040.00416.93
8.0.220.0050.00516.79
8.0.210.0030.00316.81
8.0.200.0040.00416.85
8.0.190.0030.00616.80
8.0.180.0000.00816.86
8.0.170.0000.00916.77
8.0.160.0030.00516.83
8.0.150.0000.00716.70
8.0.140.0030.00316.75
8.0.130.0060.00013.20
8.0.120.0040.00416.73
8.0.110.0040.00416.82
8.0.100.0030.00516.70
8.0.90.0000.00816.63
8.0.80.0070.01116.79
8.0.70.0050.00316.72
8.0.60.0000.00716.79
8.0.50.0070.00016.94
8.0.30.0100.00816.97
8.0.20.0110.00917.40
8.0.10.0000.00716.78
8.0.00.0100.01016.54
7.4.330.0000.00515.55
7.4.320.0040.00416.49
7.4.300.0060.00016.49
7.4.290.0030.00316.38
7.4.280.0060.00316.59
7.4.270.0030.00316.39
7.4.260.0030.00316.33
7.4.250.0000.00816.48
7.4.240.0030.00316.45
7.4.230.0000.00716.36
7.4.220.0040.00416.36
7.4.210.0080.00816.49
7.4.200.0000.00716.25
7.4.160.0080.00716.49
7.4.140.0090.01017.86
7.4.130.0100.00616.42
7.4.120.0070.01116.41
7.4.110.0120.00616.36
7.4.100.0100.00616.50
7.4.90.0090.01316.32
7.4.80.0120.00619.39
7.4.70.0070.00816.55
7.4.60.0180.00416.42
7.4.50.0150.00016.59
7.4.40.0070.01016.44
7.4.00.0070.00714.56
7.3.330.0030.00313.15
7.3.320.0000.00513.39
7.3.310.0100.00016.39
7.3.300.0070.00016.34
7.3.290.0040.00416.31
7.3.280.0050.00916.34
7.3.260.0110.00816.36
7.3.240.0100.00816.55
7.3.230.0100.00716.34
7.3.210.0080.00816.34
7.3.200.0100.00716.39
7.3.190.0040.01416.52
7.3.180.0040.01116.53
7.3.170.0110.01116.36
7.3.160.0070.01516.44
7.2.330.0070.01016.45
7.2.320.0110.00716.39
7.2.310.0060.01316.32
7.2.300.0060.01016.48
7.2.290.0120.00916.51
7.2.110.0530.00714.52
7.2.100.0100.00714.73
7.2.90.0330.00014.52
7.2.80.0480.00714.48
7.2.70.0220.00614.99
7.2.60.0220.01014.96
7.2.50.0100.00714.91
7.2.40.1000.00614.78
7.2.30.0540.01014.79
7.2.20.0680.00614.89
7.2.10.0690.01614.75
7.2.00.0570.00915.20
7.1.230.0130.00613.65
7.1.220.0590.00313.78
7.1.210.0070.01413.84
7.1.200.0220.00313.79
7.1.190.0150.00313.99
7.1.180.0100.00313.48
7.1.170.0930.00913.77
7.1.160.0850.00313.62
7.1.150.0640.00713.62
7.1.140.0720.00713.97
7.1.130.0590.00313.79
7.1.120.0840.00613.69
7.1.110.0570.00713.68
7.1.100.0590.00313.84
7.1.90.1090.00614.03
7.1.80.0510.00613.92
7.1.70.0860.01313.93
7.1.60.0840.00331.68
7.1.50.0740.01031.56
7.1.40.0770.01331.85
7.1.30.1060.00631.47
7.1.20.1050.01031.67
7.1.10.0750.01013.61
7.1.00.0690.01314.03
5.6.380.0080.00814.38

preferences:
33.62 ms | 401 KiB | 5 Q