3v4l.org

run code in 300+ PHP versions simultaneously
<?php function runUntilExceptionsStop(callable $fn, $maxRuns=5) { $done = false; $runs = 0; do { try { $fn(); // however you want to call fn $done = true; } catch( \Exception $e ) { $runs++; } } while( $runs < $maxRuns || !$done ); } runUntilExceptionsStop( function(){echo 'h';},5);

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.40.0490.02018.71
8.3.30.0490.01618.70
8.3.20.0270.01019.01
8.3.10.0340.00720.98
8.3.00.0300.00719.69
8.2.170.0630.01322.96
8.2.160.0610.01319.04
8.2.150.0230.01724.18
8.2.140.0350.00324.66
8.2.130.0350.00019.82
8.2.120.0310.00626.35
8.2.110.0330.01721.00
8.2.100.0470.01317.84
8.2.90.0200.00320.07
8.2.80.0140.01019.02
8.2.70.0210.00317.80
8.2.60.0170.00717.63
8.2.50.0170.00717.63
8.2.40.0100.01419.22
8.2.30.0160.01019.50
8.2.20.0110.01418.05
8.2.10.0170.00718.01
8.2.00.0180.00419.38
8.1.270.0350.01023.97
8.1.260.0300.01026.35
8.1.250.0260.01328.09
8.1.240.0340.01022.22
8.1.230.0360.02320.91
8.1.220.0130.01017.76
8.1.210.0210.00318.99
8.1.200.0200.01017.23
8.1.190.0170.00717.23
8.1.180.0200.00318.10
8.1.170.0180.00717.62
8.1.160.0110.01118.87
8.1.150.0230.00319.02
8.1.140.0230.00017.80
8.1.130.0200.00318.98
8.1.120.0170.00717.49
8.1.110.0190.00917.45
8.1.100.0130.01317.39
8.1.90.0180.00617.41
8.1.80.0070.02617.49
8.1.70.0140.01017.43
8.1.60.0170.00717.70
8.1.50.0190.01017.56
8.1.40.0070.01817.45
8.1.30.0200.00317.72
8.1.20.0130.01317.66
8.1.10.0160.00917.59
8.1.00.0170.00717.47
8.0.300.0110.01819.91
8.0.290.0170.00716.63
8.0.280.0140.01018.37
8.0.270.0160.01017.18
8.0.260.0240.00318.95
8.0.250.0180.00616.89
8.0.240.0170.00716.88
8.0.230.0170.00716.84
8.0.220.0100.01316.78
8.0.210.0100.01416.78
8.0.200.0190.00416.82
8.0.190.0220.00016.94
8.0.180.0180.00916.80
8.0.170.0130.01716.86
8.0.160.0220.00716.88
8.0.150.0170.00716.86
8.0.140.0130.01016.81
8.0.130.0150.00713.42
8.0.120.0180.00716.70
8.0.110.0190.00616.86
8.0.100.0160.00716.88
8.0.90.0130.01016.77
8.0.80.0310.07016.82
8.0.70.0150.00716.89
8.0.60.0150.00716.72
8.0.50.0270.00016.83
8.0.30.0810.04917.15
8.0.20.0920.04317.40
8.0.10.0130.00916.80
8.0.00.0940.04816.86
7.4.330.0130.01015.55
7.4.320.0120.00916.40
7.4.300.0130.01016.35
7.4.290.0100.01616.43
7.4.280.0230.00716.38
7.4.270.0170.00716.38
7.4.260.0120.01216.27
7.4.250.0170.00716.32
7.4.240.0030.02016.41
7.4.230.0130.01016.32
7.4.220.0140.01416.49
7.4.210.0380.04816.51
7.4.200.0030.01916.24
7.4.160.1040.04416.51
7.4.140.0970.05517.86
7.4.130.0920.05816.21
7.4.120.1080.05716.51
7.4.110.0900.05116.41
7.4.100.0920.05716.59
7.4.90.0930.05716.36
7.4.80.0880.05519.39
7.4.70.0560.04916.43
7.4.60.0780.06716.25
7.4.50.0210.03416.52
7.4.40.0830.05716.61
7.4.00.0570.04714.73
7.3.330.0180.00713.38
7.3.320.0150.00913.09
7.3.310.0190.01016.06
7.3.300.0180.00416.20
7.3.290.0210.00716.07
7.3.280.0330.05716.17
7.3.260.0950.05516.24
7.3.240.0960.05516.29
7.3.230.0890.08316.46
7.3.210.1090.08716.31
7.3.200.0590.05916.51
7.3.190.0520.05916.37
7.3.180.0670.03816.45
7.3.170.0670.03016.35
7.3.160.0750.05216.35
7.3.120.0490.01614.61
7.3.110.0450.01914.74
7.3.100.0540.03014.76
7.3.90.0450.03214.65
7.3.80.0590.02214.77
7.3.70.0540.01614.74
7.3.60.0470.02014.50
7.3.50.0450.01314.86
7.3.40.0310.03114.81
7.3.30.0550.01914.70
7.3.20.0570.01716.55
7.3.10.0350.02916.53
7.3.00.0410.02016.60
7.2.330.1090.04316.38
7.2.320.0860.03916.36
7.2.310.0720.06916.32
7.2.300.0970.06616.73
7.2.290.0850.09416.65
7.2.250.0650.02914.83
7.2.240.0660.02815.16
7.2.230.0290.04315.13
7.2.220.0660.01415.11
7.2.210.0600.00714.97
7.2.200.0410.02514.95
7.2.190.0490.01614.90
7.2.180.0520.01614.95
7.2.170.0370.03015.00
7.2.160.0460.02715.04
7.2.150.0410.03016.88
7.2.140.0320.02916.76
7.2.130.0480.02517.09
7.2.120.0340.02716.91
7.2.110.0460.02017.08
7.2.100.0620.01716.71
7.2.90.0490.02117.03
7.2.80.0410.02016.74
7.2.70.0300.02017.05
7.2.60.2720.03515.64
7.2.50.3380.05015.75
7.2.40.3460.04616.05
7.2.30.3560.03716.07
7.2.20.3160.04815.98
7.2.10.3140.03915.91
7.2.00.3160.05916.11
7.1.330.0620.02015.95
7.1.320.0530.03015.79
7.1.310.0530.03315.67
7.1.300.0330.03015.47
7.1.290.0270.03315.73
7.1.280.0490.02015.50
7.1.270.0380.03515.78
7.1.260.0450.03215.73
7.1.250.0460.02015.84
7.1.200.0370.00315.73
7.1.170.6410.04913.39
7.1.160.5760.04416.31
7.1.150.5550.08616.46
7.1.140.5820.06816.59
7.1.130.5030.07216.72
7.1.120.5860.06216.34
7.1.110.5930.07715.92
7.1.100.6220.05116.07
7.1.90.5790.04915.78
7.1.80.4520.04715.71
7.1.70.5430.04815.17
7.1.60.5520.10633.32
7.1.50.6920.05032.84
7.1.40.9700.13632.76
7.1.30.7220.06032.82
7.1.20.8010.07832.89
7.1.10.7440.07714.90
7.1.00.6380.03314.59

preferences:
71.92 ms | 400 KiB | 5 Q