3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $time = microtime(true); for ($i = 0; $i <= 1000; $i++) { $j = @$arr['foo']; } printf("%f seconds", microtime(true) - $time);

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.2.00.0030.01019.43
7.1.70.0040.00417.12
7.1.60.0030.01019.46
7.1.50.0070.01016.87
7.1.00.0000.07322.51
7.0.200.0220.00316.67
7.0.140.0000.07722.21
7.0.60.0030.08019.95
7.0.50.0070.08017.89
7.0.40.0170.06319.96
7.0.30.0400.04720.18
7.0.20.0270.06720.33
7.0.10.0130.08720.19
7.0.00.0100.07720.03
5.6.210.0000.08320.56
5.6.200.0030.06318.17
5.6.190.0170.05720.41
5.6.180.0070.08320.57
5.6.170.0370.06720.62
5.6.160.0200.07320.49
5.6.150.0070.03718.18
5.6.140.0130.05318.11
5.6.130.0030.05318.18
5.6.120.0070.04721.14
5.6.110.0100.05720.97
5.6.100.0070.08321.13
5.6.90.0200.07321.02
5.6.80.0070.08020.39
5.5.350.0200.06720.36
5.5.340.0070.07717.89
5.5.330.0170.06320.46
5.5.320.0130.06320.24
5.5.310.0130.04320.21
5.5.300.0130.06317.95
5.5.290.0030.05318.00
5.5.280.0030.04720.80
5.5.270.0100.06720.67
5.5.260.0130.06720.68
5.5.250.0030.08320.54
5.5.240.0330.06720.23
5.4.450.1570.03319.42
5.4.440.1900.05319.57
5.4.430.1600.04319.25
5.4.420.0200.03719.24
5.4.410.0170.03719.47
5.4.400.0200.03719.05
5.4.390.0270.03018.79
5.4.380.0230.03319.08
5.4.370.0170.04019.08
5.4.360.0230.03319.08
5.4.350.0230.03719.24
5.4.340.0330.03318.89
5.4.320.0270.03018.90
5.4.310.0130.05019.08
5.4.300.0170.03719.10
5.4.290.0230.03018.77
5.4.280.0270.04018.81
5.4.270.0130.04019.09
5.4.260.0170.03719.25
5.4.250.0200.03318.91
5.4.240.0270.04319.13
5.4.230.0130.04018.88
5.4.220.0200.03319.15
5.4.210.0200.03319.08
5.4.200.0300.04719.12
5.4.190.0100.05019.09
5.4.180.0270.04019.15
5.4.170.0200.03319.21
5.4.160.0270.06719.22
5.4.150.0130.04018.75
5.4.140.0200.07016.35
5.4.130.0130.04016.39
5.4.120.0130.03716.43
5.4.110.0200.04016.48
5.4.100.0170.07316.39
5.4.90.0270.05316.30
5.4.80.0170.05016.21
5.4.70.0270.06316.17
5.4.60.0230.03316.41
5.4.50.0370.04016.36
5.4.40.0230.03716.40
5.4.30.0370.04716.36
5.4.20.0200.06016.43
5.4.10.0270.06316.40
5.4.00.0300.07015.88
5.3.290.0230.04314.68
5.3.280.0200.07314.59
5.3.270.0130.08014.51
5.3.260.0330.07014.65
5.3.250.0270.07014.46
5.3.240.0230.05314.59
5.3.230.0470.06014.69
5.3.220.0470.06714.43
5.3.210.0400.04014.41
5.3.200.0430.06014.66
5.3.190.0270.05714.39
5.3.180.0300.05314.61
5.3.170.0270.07014.51
5.3.160.0270.08014.43
5.3.150.0200.07714.39
5.3.140.0400.06014.50
5.3.130.0300.05714.55
5.3.120.0230.07314.38
5.3.110.0300.04714.38
5.3.100.0270.05714.05
5.3.90.0300.06013.87
5.3.80.0270.03714.06
5.3.70.0230.07313.82
5.3.60.0170.07713.91
5.3.50.0300.04013.72
5.3.40.0270.07013.80
5.3.30.0230.06713.71
5.3.20.0430.06313.54
5.3.10.0270.05713.60
5.3.00.0330.03713.43
5.2.170.0130.04311.08
5.2.160.0200.03311.30
5.2.150.0200.06310.98
5.2.140.0400.05711.16
5.2.130.0400.05711.12
5.2.120.0370.05711.13
5.2.110.0200.03010.95
5.2.100.0200.02710.99
5.2.90.0200.05710.94
5.2.80.0370.03010.95
5.2.70.0400.05710.94
5.2.60.0300.05311.12
5.2.50.0200.04311.06
5.2.40.0200.05710.90
5.2.30.0270.02710.91
5.2.20.0200.05710.79
5.2.10.0170.06010.93
5.2.00.0170.03710.64
5.1.60.0200.04710.13
5.1.50.0170.04710.13
5.1.40.0500.02310.13
5.1.30.0200.05710.41
5.1.20.0130.03010.30
5.1.10.0370.04310.13
5.1.00.0170.02710.13
5.0.50.0170.03710.13
5.0.40.0100.03710.13
5.0.30.0130.03310.13
5.0.20.0100.02310.13
5.0.10.0070.04710.13
5.0.00.0130.03310.13
4.4.90.0070.02010.13
4.4.80.0100.03010.13
4.4.70.0130.02310.13
4.4.60.0170.03310.13
4.4.50.0130.02710.13
4.4.40.0030.03010.13
4.4.30.0070.03310.13
4.4.20.0230.02710.13
4.4.10.0000.04710.13
4.4.00.0030.03010.13
4.3.110.0200.02010.13
4.3.100.0130.01310.13
4.3.90.0070.01710.13
4.3.80.0070.02310.13
4.3.70.0070.01310.13
4.3.60.0070.02010.13
4.3.50.0070.01310.13
4.3.40.0030.02710.13
4.3.30.0070.01710.13
4.3.20.0030.03010.13
4.3.10.0030.01710.13
4.3.00.0000.02710.13

preferences:
32.76 ms | 401 KiB | 5 Q