3v4l.org

run code in 300+ PHP versions simultaneously
<?php // capture any unexpected output and exit execution ob_start(function($buffer) { echo 'unexpected output: ' . $buffer . "\n"; exit; }, 1); // do some work on shutdown register_shutdown_function(function() { ob_flush(); ob_end_clean(); echo 'shutting down'; });

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.0090.00918.50
8.3.50.0140.00018.10
8.3.40.0070.00718.84
8.3.30.0070.00718.71
8.3.20.0040.00424.18
8.3.10.0110.00224.09
8.3.00.0090.00323.41
8.2.180.0090.00925.92
8.2.170.0140.00018.79
8.2.160.0100.00322.96
8.2.150.0030.00525.66
8.2.140.0070.00623.44
8.2.130.0050.00724.18
8.2.120.0090.00420.86
8.2.110.0090.00521.31
8.2.100.0090.00519.45
8.2.90.0080.00719.15
8.2.80.0080.00519.77
8.2.70.0050.00819.10
8.2.60.0070.00619.25
8.2.50.0100.00419.27
8.2.40.0110.00419.39
8.2.30.0070.00419.33
8.2.20.0060.00619.21
8.2.10.0100.00120.82
8.2.00.0030.00819.90
8.1.280.0160.00625.92
8.1.270.0100.00423.99
8.1.260.0100.00425.07
8.1.250.0090.00225.95
8.1.240.0070.00921.29
8.1.230.0110.00519.71
8.1.220.0070.00519.14
8.1.210.0050.00919.53
8.1.200.0080.00418.98
8.1.190.0070.00718.78
8.1.180.0060.00919.08
8.1.170.0080.00819.38
8.1.160.0080.00319.64
8.1.150.0070.00219.59
8.1.140.0050.00419.41
8.1.130.0040.00320.31
8.1.120.0040.00418.86
8.1.110.0010.00718.73
8.1.100.0030.00518.77
8.1.90.0000.00818.79
8.1.80.0020.00618.77
8.1.70.0040.00418.81
8.1.60.0060.00219.02
8.1.50.0000.00818.88
8.1.40.0040.00618.91
8.1.30.0020.00619.01
8.1.20.0020.00518.98
8.1.10.0020.00618.81
8.1.00.0060.00218.81
8.0.300.0040.00419.75
8.0.290.0120.00217.22
8.0.280.0090.00318.11
8.0.270.0040.00918.80
8.0.260.0090.00218.13
8.0.250.0030.00518.35
8.0.240.0040.00717.33
8.0.230.0050.00517.36
8.0.220.0060.00317.29
8.0.210.0070.00417.35
8.0.200.0040.00417.41
8.0.190.0080.00018.32
8.0.180.0060.00218.38
8.0.170.0110.00017.24
8.0.160.0020.00618.36
8.0.150.0140.00617.32
8.0.140.0170.00417.16
8.0.130.0040.00515.52
8.0.120.0140.00717.28
8.0.110.0080.00518.14
8.0.100.0120.00617.40
8.0.90.0130.00517.30
8.0.80.0050.01117.79
8.0.70.0020.01018.31
8.0.60.0070.00317.28
8.0.50.0070.00417.22
8.0.30.0110.01018.17
8.0.20.0090.00518.36
8.0.10.0150.00617.31
8.0.00.0160.00419.10
7.4.330.0090.00714.77
7.4.320.0060.00616.91
7.4.300.0080.00316.87
7.4.290.0110.00716.71
7.4.280.0060.00616.90
7.4.270.0100.00116.96
7.4.260.0080.00415.33
7.4.250.0070.00517.01
7.4.240.0160.00516.88
7.4.230.0110.00416.99
7.4.220.0070.00316.73
7.4.210.0100.00416.73
7.4.200.0080.00417.11
7.4.190.0300.00617.55
7.4.180.0270.01017.15
7.4.160.0200.00617.00
7.4.150.0190.00516.86
7.4.140.0190.00816.98
7.4.130.0200.00316.72
7.4.120.0150.01116.88
7.4.110.0140.01116.92
7.4.100.0230.00516.97
7.4.90.0200.00716.83
7.4.80.0200.00916.86
7.4.70.0170.00716.74
7.4.60.0100.00916.78
7.4.50.0110.00716.79
7.4.40.0130.00416.78
7.4.30.0150.00316.79
7.4.20.0130.00516.78
7.4.10.0120.00416.93
7.4.00.0100.00817.00
7.3.330.0080.00316.94
7.3.320.0080.00315.23
7.3.310.0090.00516.82
7.3.300.0130.00217.11
7.3.290.0120.00616.54
7.3.280.0190.00017.00
7.3.270.0150.00216.79
7.3.260.0120.00516.81
7.3.250.0140.01116.67
7.3.240.0180.00816.90
7.3.230.0170.00916.76
7.3.220.0180.00716.82
7.3.210.0160.00616.67
7.3.200.0120.00516.83
7.3.190.0150.00716.72
7.3.180.0190.00416.82
7.3.170.0170.00717.10
7.3.160.0160.00616.75
7.3.150.0140.00516.66
7.3.140.0170.00516.73
7.3.130.0190.00316.77
7.3.120.0090.00916.70
7.3.110.0130.00616.97
7.3.100.0200.00616.62
7.3.90.0180.00917.05
7.3.80.0130.00716.70
7.3.70.0140.00516.81
7.3.60.0110.00616.97
7.3.50.0080.01016.92
7.3.40.0110.00616.84
7.3.30.0090.01216.83
7.3.20.0180.00617.82
7.3.10.0140.00617.73
7.3.00.0100.01017.64

preferences:
51.45 ms | 401 KiB | 5 Q