3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $time = microtime(true); for ($i = 0; $i <= 1000000; $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.0000.19719.43
7.1.70.0030.20316.93
7.1.60.0030.19919.46
7.1.50.0030.18616.80
7.1.00.0000.29022.25
7.0.200.0330.18716.79
7.0.140.0030.30022.21
7.0.60.0130.23719.94
7.0.50.0100.19717.81
7.0.40.0030.21020.09
7.0.30.0500.24720.31
7.0.20.0500.21020.21
7.0.10.0130.26020.20
7.0.00.0000.21720.03
5.6.280.0070.37321.04
5.6.210.0030.37020.64
5.6.200.0030.36718.19
5.6.190.0170.34320.39
5.6.180.0230.31720.48
5.6.170.0200.36720.48
5.6.160.0130.36320.37
5.6.150.0000.31018.05
5.6.140.0000.30018.18
5.6.130.0070.33318.11
5.6.120.0030.31721.00
5.6.110.0170.36021.13
5.6.100.0130.33721.10
5.6.90.0000.30021.01
5.6.80.0070.31020.28
5.6.70.4470.30320.39
5.5.350.0130.37020.43
5.5.340.0070.36317.98
5.5.330.0100.37720.36
5.5.320.0270.39020.29
5.5.310.0170.37020.23
5.5.300.0000.30318.01
5.5.290.0070.36017.95
5.5.280.0030.37720.84
5.5.270.0030.37320.79
5.5.260.0030.33720.86
5.5.250.0000.30020.68
5.5.240.0270.35320.35
5.4.450.1170.26319.21
5.4.440.0670.40719.48
5.4.430.0200.37319.57
5.4.420.0470.46019.45
5.4.410.0100.37019.43
5.4.400.0230.46019.08
5.4.390.0230.45018.93
5.4.380.0300.48718.80
5.4.370.0370.48718.67
5.4.360.0400.53018.67
5.4.350.0370.43718.56
5.4.340.0370.62718.66
5.4.320.0070.35212.46
5.4.310.0090.34312.45
5.4.300.0060.33412.45
5.4.290.0060.36412.46
5.4.280.0050.34112.35
5.4.270.0080.36912.35
5.4.260.0080.33512.35
5.4.250.0130.32512.35
5.4.240.0040.40912.35
5.4.230.0060.41312.34
5.4.220.0070.41212.34
5.4.210.0070.35912.34
5.4.200.0040.36612.34
5.4.190.0080.34012.34
5.4.180.0060.41512.34
5.4.170.0080.33612.35
5.4.160.0030.33212.35
5.4.150.0070.34212.34
5.4.140.0190.33712.03
5.4.130.0040.34412.02
5.4.120.0100.38411.97
5.4.110.0110.38011.96
5.4.100.0080.39111.96
5.4.90.0230.34611.96
5.4.80.0070.47711.96
5.4.70.0050.40211.96
5.4.60.0090.33811.96
5.4.50.0100.33611.96
5.4.40.0070.33611.95
5.4.30.0050.33611.95
5.4.20.0070.35211.95
5.4.10.0100.34611.95
5.4.00.0070.41711.44
5.3.290.0130.55112.80
5.3.280.0100.46212.71
5.3.270.0050.61612.72
5.3.260.0080.54812.72
5.3.250.0080.76912.72
5.3.240.0120.45112.72
5.3.230.0060.46212.71
5.3.220.0120.44912.68
5.3.210.0050.50112.68
5.3.200.0040.51512.68
5.3.190.0070.48612.68
5.3.180.0060.53612.67
5.3.170.0030.52312.67
5.3.160.0060.50012.67
5.3.150.0100.61512.68
5.3.140.0080.47512.66
5.3.130.0090.46412.66
5.3.120.0060.46312.66
5.3.110.0060.51312.66
5.3.100.0100.46912.12
5.3.90.0040.51712.08
5.3.80.0050.46512.08
5.3.70.0090.49512.08
5.3.60.0060.49712.07
5.3.50.0070.48912.00
5.3.40.0030.50412.00
5.3.30.0070.47111.95
5.3.20.0080.47711.73
5.3.10.0070.47511.70
5.3.00.0080.49511.68
5.2.170.0060.5499.18
5.2.160.0070.4739.18
5.2.150.0070.6079.18
5.2.140.0050.5499.17
5.2.130.0120.6229.14
5.2.120.0040.4729.14
5.2.110.0070.4999.14
5.2.100.0080.5539.14
5.2.90.0060.4499.15
5.2.80.0060.4629.14
5.2.70.0100.6029.14
5.2.60.0070.5039.09
5.2.50.0050.5659.05
5.2.40.0060.4889.04
5.2.30.0050.4769.02
5.2.20.0060.6369.00
5.2.10.0070.5328.94
5.2.00.0060.6938.80
5.1.60.0060.5108.08
5.1.50.0080.6018.08
5.1.40.0040.5348.07
5.1.30.0090.4978.41
5.1.20.0070.6598.44
5.1.10.0040.5138.16
5.1.00.0050.5988.16
5.0.50.0030.7716.63
5.0.40.0060.6486.50
5.0.30.0010.7266.31
5.0.20.0040.6486.27
5.0.10.0130.8066.25
5.0.00.0050.7226.24
4.4.90.0100.9184.77
4.4.80.0040.7164.76
4.4.70.0060.7584.75
4.4.60.0070.9594.75
4.4.50.0060.7144.77
4.4.40.0060.8204.71
4.4.30.0040.8104.76
4.4.20.0070.9384.84
4.4.10.0050.7984.85
4.4.00.0060.7684.76
4.3.110.0030.7534.67
4.3.100.0050.8054.66
4.3.90.0020.7874.63
4.3.80.0060.9214.59
4.3.70.0040.8384.63
4.3.60.0030.8484.63
4.3.50.0060.7804.63
4.3.40.0040.8384.54
4.3.30.0050.8143.34
4.3.20.0020.7953.31
4.3.10.0030.7763.28
4.3.00.0000.81318.56

preferences:
32.9 ms | 401 KiB | 5 Q