3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $x = array(); $start = microtime( true ); do { $x[] = array( "firstname" => "Patrick", "lastname" => "Allaert" ); ++$i; } while ( $i < 500000 ); echo microtime( true ) - $start, "\n", memory_get_peak_usage(), "\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)
7.3.10.0300.00834.61
7.3.00.0150.02534.54
7.2.130.0870.01034.59
7.2.120.0650.01934.74
7.2.110.0410.02234.74
7.2.100.0160.01934.49
7.2.90.0450.02334.60
7.2.80.0450.03334.51
7.2.70.0570.02234.74
7.2.60.0470.03334.48
7.2.50.0650.02434.28
7.2.40.0680.02634.36
7.2.30.0530.03434.61
7.2.20.0710.01834.44
7.2.10.0700.01334.68
7.2.00.0250.00311.61
7.1.250.0360.03333.76
7.1.70.0170.02434.91
7.1.60.0100.04335.09
7.1.50.0230.02634.95
7.1.00.0100.07340.11
7.0.200.3220.02072.85
7.0.140.0070.09780.11
7.0.120.0030.10380.04
7.0.60.0370.10777.59
7.0.50.0300.05075.60
7.0.40.0230.09027.63
7.0.30.0700.09027.70
7.0.20.0370.05327.66
7.0.10.0530.07027.73
7.0.00.0170.11327.62
5.6.280.0300.14085.69
5.6.210.0500.12085.13
5.6.200.0130.09782.81
5.6.190.0300.12085.11
5.6.180.0400.10785.11
5.6.170.0630.12385.05
5.6.160.0430.13385.08
5.6.150.0500.11082.71
5.6.140.0270.09382.68
5.6.130.0430.12782.81
5.6.120.0170.09785.79
5.6.110.0330.12385.79
5.6.100.0200.15385.66
5.6.90.0200.09085.60
5.6.80.0370.09785.19
5.6.70.4600.09785.02
5.5.350.0500.14385.09
5.5.340.0100.10382.54
5.5.330.0230.15084.62
5.5.320.0400.11084.82
5.5.310.0470.13384.85
5.5.300.0330.14382.59
5.5.290.0130.09782.54
5.5.280.0230.15785.30
5.5.270.0270.15385.42
5.5.260.0130.16385.52
5.5.250.0230.15385.20
5.5.240.0400.14084.92
5.4.450.0370.12784.07
5.4.440.0330.08383.99
5.4.430.0270.09384.02
5.4.420.0200.15783.83
5.4.410.0200.14383.70
5.4.400.0230.15083.58
5.4.390.0400.13783.67
5.4.380.0400.08383.77
5.4.370.0330.12783.50
5.4.360.0200.13383.39
5.4.350.0330.13383.41
5.4.340.0200.13083.39
5.4.320.0170.09783.73
5.4.310.0300.14383.45
5.4.300.0470.13083.61
5.4.290.0230.14383.61
5.4.280.0330.14083.66
5.4.270.0200.11783.75
5.4.260.0230.15083.50
5.4.250.0270.14083.75
5.4.240.0330.12783.36
5.4.230.0300.12083.49
5.4.220.0170.09783.38
5.4.210.0300.08783.69
5.4.200.0200.09083.71
5.4.190.0170.09783.74
5.4.180.0070.10083.52
5.4.170.0230.08783.50
5.4.160.0300.08083.68
5.4.150.0130.10383.36
5.4.140.0170.09380.95
5.4.130.0270.08080.89
5.4.120.0400.07080.89
5.4.110.0170.09080.89
5.4.100.0100.09380.91
5.4.90.0230.08381.02
5.4.80.0470.08380.88
5.4.70.0200.11081.00
5.4.60.0130.10780.86
5.4.50.0200.09780.78
5.4.40.0100.16081.03
5.4.30.0400.10380.99
5.4.20.0170.11080.82
5.4.10.0070.15380.80
5.4.00.0230.09380.43
5.3.290.0200.14777.57
5.3.280.0170.11077.74
5.3.270.0170.09777.66
5.3.260.0170.11077.70
5.3.250.0400.08377.59
5.3.240.0130.11077.65
5.3.230.0230.09377.59
5.3.220.0170.09777.59
5.3.210.0270.11777.60
5.3.200.0200.09077.60
5.3.190.0170.10377.61
5.3.180.0100.10377.60
5.3.170.0170.09377.70
5.3.160.0200.11077.62
5.3.150.0230.10377.66
5.3.140.0170.12377.61
5.3.130.0330.14777.58
5.3.120.0270.09377.59
5.3.110.0470.13077.61
5.3.100.0070.11377.14
5.3.90.0300.15377.11
5.3.80.0370.14076.91
5.3.70.0200.15776.94
5.3.60.0370.15076.90
5.3.50.0170.12776.90
5.3.40.0300.14376.93
5.3.30.0230.12776.80
5.3.20.0270.15376.69
5.3.10.0170.15776.61
5.3.00.0300.12376.67
5.2.170.0330.09074.63
5.2.160.0170.11374.66
5.2.150.0300.09774.66
5.2.140.0370.13074.63
5.2.130.0400.08774.68
5.2.120.0230.13374.59
5.2.110.0200.09374.62
5.2.100.0570.10374.59
5.2.90.0270.15374.66
5.2.80.0270.14074.60
5.2.70.0370.14374.59
5.2.60.0200.09374.56
5.2.50.0200.16074.60
5.2.40.0370.15074.55
5.2.30.0170.14075.11
5.2.20.0330.12374.40
5.2.10.0400.11374.33
5.2.00.0700.337320.02
5.1.60.1270.530417.99
5.1.50.0970.460418.00
5.1.40.1230.420417.98
5.1.30.1100.400418.36
5.1.20.1200.363418.35
5.1.10.1170.347417.95
5.1.00.1400.397417.91
5.0.50.1300.413416.49
5.0.40.1430.483416.40
5.0.30.1000.550416.17
5.0.20.1130.493416.21
5.0.10.0930.483416.07
5.0.00.1270.440416.11
4.4.90.1230.403413.94
4.4.80.0800.543413.86
4.4.70.1200.493413.83
4.4.60.1170.497413.89
4.4.50.1230.407413.88
4.4.40.1130.437413.94
4.4.30.1170.487413.85
4.4.20.0930.443413.92
4.4.10.1170.457413.87
4.4.00.1030.390413.93
4.3.110.1470.737413.87
4.3.100.3530.650413.82
4.3.90.1070.647413.80
4.3.80.1170.630413.73
4.3.70.1430.750413.76
4.3.60.0970.740413.85
4.3.50.1100.633413.78
4.3.40.1270.660413.86
4.3.30.3230.667412.55
4.3.20.0870.703412.51
4.3.10.1000.590412.51
4.3.00.1130.763412.50

preferences:
33.73 ms | 401 KiB | 5 Q