3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get Smart - TV comedy debuted 1965 $agents = array( array(86 => "Don Adams"), array(99 => "Barbara Feldon"), array(08 => "Burt Mustin"), array(13 => "Dave Ketchum"), array(44 => "Victor French"), array(38 => "Angelique Pettyjohn") ); echo "The secret agents and the actors who portrayed them:"; list( $agent,$actor ) = $agents; foreach ($agents as $agents) { echo $actor, ' => ', $agent; }

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)
5.6.280.0070.07020.99
5.6.210.0000.06020.53
5.6.200.0000.04718.21
5.6.190.0100.07720.77
5.6.180.0300.04720.49
5.6.170.0230.07320.46
5.6.160.0100.08720.48
5.6.150.0030.04718.15
5.6.140.0130.07318.15
5.6.130.0030.07018.14
5.6.120.0030.05321.11
5.6.110.0130.08320.97
5.6.100.0100.08321.00
5.6.90.0100.08320.99
5.6.80.0130.06320.43
5.6.70.2730.03020.50
5.5.350.0100.08020.33
5.5.340.0100.08017.92
5.5.330.0000.04720.25
5.5.320.0400.06720.29
5.5.310.0230.08020.23
5.5.300.0070.08318.00
5.5.290.0070.08317.88
5.5.280.0100.06320.96
5.5.270.0100.03720.83
5.5.260.0000.04720.79
5.5.250.0070.04320.68
5.5.240.0100.07320.25
5.4.450.2600.03719.43
5.4.440.3170.04319.46
5.4.430.2630.04319.41
5.4.420.2500.04019.42
5.4.410.2570.03019.00
5.4.400.2600.04319.23
5.4.390.2770.03018.93
5.4.380.2330.03319.16
5.4.370.2670.04319.24
5.4.360.3170.04718.78
5.4.350.2800.04018.77
5.4.340.2300.03718.92
5.4.320.2500.03719.16
5.4.310.2700.03719.23
5.4.300.2430.03319.24
5.4.290.2730.03319.16
5.4.280.2330.03718.93
5.4.270.2670.04018.88
5.4.260.2830.04319.09
5.4.250.2870.03318.91
5.4.240.2730.03718.81
5.4.230.3300.05019.05
5.4.220.3400.03719.23
5.4.210.3200.04719.04
5.4.200.2900.04319.09
5.4.190.2570.03719.07
5.4.180.2930.04019.23
5.4.170.2770.03319.12
5.4.160.3230.05019.06
5.4.150.3370.05019.06
5.4.140.2900.02716.29
5.4.130.2770.03016.45
5.4.120.2730.03016.25
5.4.110.2700.03316.34
5.4.100.2670.03716.25
5.4.90.2730.03016.46
5.4.80.2830.03316.20
5.4.70.3170.03716.48
5.4.60.2770.03716.04
5.4.50.2870.03316.44
5.4.40.2930.03316.40
5.4.30.2800.04016.04
5.4.20.3030.03016.43
5.4.10.3000.03316.03
5.4.00.2930.03715.80
5.3.290.2900.04014.51
5.3.280.2730.04014.55
5.3.270.2730.04714.70
5.3.260.2970.04314.44
5.3.250.2830.04014.51
5.3.240.3130.03314.48
5.3.230.3130.03714.55
5.3.220.2930.03714.41
5.3.210.2900.04314.51
5.3.200.2700.03314.51
5.3.190.2930.04314.52
5.3.180.2670.04014.51
5.3.170.2900.04014.41
5.3.160.2970.04314.41
5.3.150.3030.04314.41
5.3.140.2900.04314.46
5.3.130.3170.03714.41
5.3.120.2970.03714.41
5.3.110.2870.04314.50
5.3.100.3030.04314.00
5.3.90.2800.03713.86
5.3.80.2670.03713.97
5.3.70.2970.04013.87
5.3.60.2900.02313.95
5.3.50.3030.03713.79
5.3.40.3030.03013.80
5.3.30.2900.03014.00
5.3.20.2800.02713.53
5.3.10.2570.03013.51
5.3.00.2700.03713.41
5.2.170.2270.03011.09
5.2.160.2500.02011.16
5.2.150.2370.02711.15
5.2.140.2230.03311.19
5.2.130.2300.02710.96
5.2.120.2500.02311.01
5.2.110.2270.02711.14
5.2.100.2470.03010.95
5.2.90.2330.02711.26
5.2.80.2700.03311.14
5.2.70.2770.02711.11
5.2.60.2730.03011.09
5.2.50.2500.03010.90
5.2.40.1770.02710.93
5.2.30.1970.02710.81
5.2.20.2030.03310.80
5.2.10.1900.03310.77
5.2.00.1830.02310.66
5.1.60.2000.02310.15
5.1.50.1900.03310.04
5.1.40.2000.0279.91
5.1.30.2030.02310.38
5.1.20.1900.02310.26
5.1.10.2000.03010.05
5.1.00.2070.02710.18
5.0.50.1000.0278.45
5.0.40.1200.0208.30
5.0.30.1030.0278.12
5.0.20.1030.0278.12
5.0.10.1100.0278.15
5.0.00.1100.0438.08
4.4.90.1000.0206.63
4.4.80.1170.0176.63
4.4.70.0970.0136.63
4.4.60.0930.0106.63
4.4.50.1070.0176.63
4.4.40.0870.0276.63
4.4.30.1000.0176.63
4.4.20.1130.0206.63
4.4.10.0970.0136.63
4.4.00.1130.0336.63
4.3.110.1130.0206.63
4.3.100.1100.0176.63
4.3.90.0870.0176.63
4.3.80.1130.0306.63
4.3.70.1270.0236.63
4.3.60.0900.0136.63
4.3.50.1070.0236.63
4.3.40.0830.0276.63
4.3.30.0470.0206.63
4.3.20.0630.0276.63
4.3.10.0000.0176.63
4.3.00.0000.0306.63

preferences:
149.41 ms | 1394 KiB | 7 Q