3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __constructor(){} } $a = array(); for ($i=0; $i<100000; $i++) $a[rand()%100] = new Foo();

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.1.70.0100.02617.30
7.1.60.0030.04219.29
7.1.50.0140.01734.72
7.1.00.0000.09722.47
7.0.200.0130.01916.95
7.0.140.0000.08321.97
7.0.60.0100.06020.03
7.0.50.0100.06017.88
7.0.40.0030.07020.02
7.0.30.0270.05020.10
7.0.20.0230.08320.30
7.0.10.0300.09720.22
7.0.00.0070.06020.19
5.6.280.0070.10021.07
5.6.210.0070.10020.63
5.6.200.0000.06018.20
5.6.190.0000.10720.52
5.6.180.0030.10720.50
5.6.170.0300.09320.56
5.6.160.0030.06720.70
5.6.150.0030.07018.23
5.6.140.0130.08018.12
5.6.130.0130.10318.18
5.6.120.0100.06721.01
5.6.110.0030.05721.01
5.6.100.0100.10320.98
5.6.90.0070.09020.95
5.6.80.0100.10020.51
5.6.70.4530.05720.53
5.5.350.0030.04720.43
5.5.340.0170.05317.99
5.5.330.0100.05320.40
5.5.320.0000.07020.27
5.5.310.0200.11020.27
5.5.300.0130.09718.01
5.5.290.0070.10317.92
5.5.280.0170.09720.89
5.5.270.0030.07320.84
5.5.260.0100.05020.87
5.5.250.0130.09320.75
5.5.240.0030.10320.36
5.4.450.0870.07019.32
5.4.440.1100.12319.16
5.4.430.0630.08319.46
5.4.420.0400.09719.33
5.4.410.0900.08719.57
5.4.400.0630.11018.89
5.4.390.0730.09019.14
5.4.380.0070.08718.84
5.4.370.0370.11318.62
5.4.360.0370.07718.48
5.4.350.0300.08018.69
5.4.340.0600.07318.58
5.4.320.0070.05912.51
5.4.310.0040.06412.52
5.4.300.0060.05512.52
5.4.290.0100.06512.51
5.4.280.0040.06012.41
5.4.270.0100.07012.41
5.4.260.0070.06512.41
5.4.250.0080.06812.41
5.4.240.0030.06012.39
5.4.230.0060.05612.37
5.4.220.0040.06112.38
5.4.210.0050.06012.38
5.4.200.0040.05912.37
5.4.190.0060.05412.37
5.4.180.0070.05312.37
5.4.170.0050.05612.38
5.4.160.0030.05712.37
5.4.150.0070.05512.37
5.4.140.0040.05912.05
5.4.130.0070.05312.05
5.4.120.0040.05912.00
5.4.110.0060.05512.00
5.4.100.0060.05512.00
5.4.90.0060.05512.00
5.4.80.0040.05812.00
5.4.70.0030.05511.99
5.4.60.0060.05411.99
5.4.50.0050.05512.00
5.4.40.0050.05611.98
5.4.30.0050.05911.97
5.4.20.0100.05511.97
5.4.10.0030.07011.97
5.4.00.0060.05711.47
5.3.290.0070.07012.80
5.3.280.0100.08712.71
5.3.270.0040.07112.72
5.3.260.0060.06712.72
5.3.250.0090.06212.72
5.3.240.0070.07112.72
5.3.230.0030.07012.71
5.3.220.0080.07112.68
5.3.210.0080.07312.68
5.3.200.0100.07112.68
5.3.190.0060.06412.68
5.3.180.0070.07212.68
5.3.170.0050.07412.67
5.3.160.0080.06112.67
5.3.150.0030.07312.68
5.3.140.0040.06712.66
5.3.130.0070.06612.66
5.3.120.0060.06612.65
5.3.110.0090.06712.66
5.3.100.0090.07212.12
5.3.90.0040.06412.09
5.3.80.0080.06012.08
5.3.70.0100.07112.08
5.3.60.0080.06812.06
5.3.50.0060.08012.02
5.3.40.0080.07112.02
5.3.30.0070.06611.98
5.3.20.0090.07311.76
5.3.10.0090.05811.72
5.3.00.0080.06511.71
5.2.170.0040.0639.21
5.2.160.0050.0699.21
5.2.150.0010.0819.21
5.2.140.0100.0569.21
5.2.130.0060.0579.17
5.2.120.0030.0599.17
5.2.110.0040.0639.18
5.2.100.0080.0959.18
5.2.90.0030.0649.17
5.2.80.0050.0599.16
5.2.70.0060.0609.16
5.2.60.0060.0609.12
5.2.50.0030.0649.09
5.2.40.0050.0659.06
5.2.30.0020.0639.03
5.2.20.0040.0599.03
5.2.10.0050.0598.93
5.2.00.0040.0658.79
5.1.60.0040.0518.08
5.1.50.0030.0538.08
5.1.40.0010.0608.07
5.1.30.0080.0618.42
5.1.20.0050.0618.44
5.1.10.0040.0528.16
5.1.00.0040.0578.15
5.0.50.0070.0706.64
5.0.40.0050.0586.50
5.0.30.0030.0726.31
5.0.20.0000.0686.27
5.0.10.0020.0626.26
5.0.00.0050.0676.25
4.4.90.0020.0594.78
4.4.80.0010.0574.75
4.4.70.0020.0634.75
4.4.60.0020.0544.75
4.4.50.0000.0554.77
4.4.40.0060.0734.71
4.4.30.0030.0594.76
4.4.20.0030.0654.84
4.4.10.0030.0544.84
4.4.00.0030.0694.76
4.3.110.0020.0674.66
4.3.100.0030.0644.67
4.3.90.0030.0674.63
4.3.80.0050.0684.58
4.3.70.0050.0624.63
4.3.60.0030.0524.63
4.3.50.0030.0654.63
4.3.40.0040.0684.54
4.3.30.0010.0593.31
4.3.20.0020.1743.29
4.3.10.0010.1813.24
4.3.00.0070.15713.14

preferences:
44.84 ms | 401 KiB | 5 Q