3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array(); class MyArrayObject{ public $name, $age; public function __construct( $name, $age ) { $this->name = $name; $this->age = $age; } } for( $x=0;$x<100000;$x++){ $o = new MyArrayObject( 'Adam', 35 ); $s[] = $o; }

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)
8.3.60.0100.02428.46
8.3.50.0150.01727.47
8.3.40.0180.03328.69
8.3.30.0290.00628.79
8.3.20.0100.01030.46
8.3.10.0070.01332.07
8.3.00.0090.00929.51
8.2.180.0230.02027.00
8.2.170.0160.01928.95
8.2.160.0240.01029.41
8.2.150.0100.01029.15
8.2.140.0100.01030.72
8.2.130.0200.01632.04
8.2.120.0000.01530.09
8.2.110.0100.01730.50
8.2.100.0070.02128.09
8.2.90.0040.01828.00
8.2.80.0030.01728.18
8.2.70.0070.01528.16
8.2.60.0090.01328.16
8.2.50.0120.00928.29
8.2.40.0030.01830.72
8.2.30.0100.01329.49
8.2.20.0070.01327.82
8.2.10.0030.01728.20
8.2.00.0000.02128.20
8.1.280.0360.01628.20
8.1.270.0040.01136.36
8.1.260.0070.01432.17
8.1.250.0090.01233.97
8.1.240.0070.01436.33
8.1.230.0260.00330.82
8.1.220.0040.01829.51
8.1.210.0130.01029.13
8.1.200.0120.01229.09
8.1.190.0100.01328.80
8.1.180.0070.01729.00
8.1.170.0130.01030.37
8.1.160.0070.01430.76
8.1.150.0060.01530.57
8.1.140.0070.01731.32
8.1.130.0120.00929.37
8.1.120.0070.01429.11
8.1.110.0140.00729.14
8.1.100.0070.01529.05
8.1.90.0090.01229.13
8.1.80.0030.01729.27
8.1.70.0060.01629.14
8.1.60.0110.01429.43
8.1.50.0170.00829.41
8.1.40.0170.01729.25
8.1.30.0090.01629.20
8.1.20.0030.02129.23
8.1.10.0070.01729.39
8.1.00.0030.02029.34
8.0.300.0040.01731.36
8.0.290.0100.01328.34
8.0.280.0060.01629.80
8.0.270.0060.01528.65
8.0.260.0100.01028.82
8.0.250.0070.01328.47
8.0.240.0100.01428.49
8.0.230.0070.01428.46
8.0.220.0110.01128.52
8.0.210.0130.01028.21
8.0.200.0100.01028.26
8.0.190.0120.01228.36
8.0.180.0030.02028.43
8.0.170.0000.02528.43
8.0.160.0070.01728.48
8.0.150.0170.00728.40
8.0.140.0040.02128.37
8.0.130.0030.01824.80
8.0.120.0030.02128.46
8.0.110.0180.00728.41
8.0.100.0100.01328.31
8.0.90.0160.01028.35
8.0.80.0170.02728.34
8.0.70.0130.01328.33
8.0.60.0140.01128.21
8.0.50.0070.01728.34
8.0.30.0250.02228.58
8.0.20.0240.02828.43
8.0.10.0130.01028.29
8.0.00.0350.03328.13
7.4.330.0170.00326.84
7.4.320.0070.01427.90
7.4.300.0030.01628.05
7.4.290.0130.01327.90
7.4.280.0030.02327.97
7.4.270.0130.01328.18
7.4.260.0100.01327.98
7.4.250.0090.01527.94
7.4.240.0030.02127.99
7.4.230.0070.01628.11
7.4.220.0260.05328.13
7.4.210.0190.03228.10
7.4.200.0070.02128.16
7.4.160.0100.03827.99
7.4.150.0300.04427.89
7.4.140.0290.03228.12
7.4.130.0290.03428.13
7.4.120.0300.03527.97
7.4.110.0220.04428.18
7.4.100.0330.03227.98
7.4.90.0300.03728.00
7.4.80.0340.03527.83
7.4.70.0160.04528.08
7.4.60.0250.03628.09
7.4.50.0180.03528.08
7.4.40.0260.04027.86
7.4.30.0280.03527.82
7.4.20.0230.03527.94
7.4.10.0280.03227.92
7.4.00.0220.03127.67
7.3.330.0140.01024.77
7.3.320.0030.02024.91
7.3.310.0060.01827.82
7.3.300.0000.02527.75
7.3.290.0210.03327.84
7.3.280.0230.03627.85
7.3.270.0300.02427.89
7.3.260.0200.03428.05
7.3.250.0230.04427.97
7.3.240.0250.03927.86
7.3.230.0300.03328.01
7.3.220.0460.03227.92
7.3.210.0250.03627.77
7.3.200.0230.03927.85
7.3.190.0280.03727.86
7.3.180.0270.03727.71
7.3.170.0260.03727.73
7.3.160.0310.03527.71
7.3.150.0240.03928.06
7.3.140.0300.03527.64
7.3.130.0220.03727.82
7.3.120.0210.03527.83
7.3.110.0220.03227.84
7.3.100.0230.04227.87
7.3.90.0220.04227.68
7.3.80.0210.03827.90
7.3.70.0230.03527.88
7.3.60.0260.03527.85
7.3.50.0250.03727.85
7.3.40.0220.03227.82
7.3.30.0300.03127.82
7.3.20.0320.03827.75
7.3.10.0420.03427.90
7.3.00.0310.04427.79
7.2.340.0470.04228.11
7.2.330.0240.03928.08
7.2.320.0250.04928.08
7.2.310.0320.04028.11
7.2.300.0310.03828.21
7.2.290.0300.03728.16
7.2.280.0290.04727.88
7.2.270.0370.04428.12
7.2.260.0260.03528.25
7.2.250.0260.04028.03
7.2.240.0220.04528.09
7.2.230.0220.04328.19
7.2.220.0280.03628.01
7.2.210.0270.03828.19
7.2.200.0260.04128.19
7.2.190.0220.04228.08
7.2.180.0290.03628.12
7.2.170.0280.03228.11
7.2.160.0230.04128.08
7.2.150.0280.03928.16
7.2.140.0260.04228.14
7.2.130.0280.03628.21
7.2.120.0380.03028.21
7.2.110.0270.03428.12
7.2.100.0340.03528.25
7.2.90.0320.03428.15
7.2.80.0330.03628.16
7.2.70.0370.05028.18
7.2.60.0240.04428.31
7.2.50.0280.03428.34
7.2.40.0240.04328.46
7.2.30.0370.03828.37
7.2.20.0560.04128.53
7.2.10.0390.03228.51
7.2.00.0380.03728.98
7.1.330.0320.04327.06
7.1.320.0400.04826.95
7.1.310.0300.04227.12
7.1.300.0350.04527.02
7.1.290.0360.03826.99
7.1.280.0330.04527.10
7.1.270.0350.04227.08
7.1.260.0320.03827.04
7.1.250.0270.04727.07
7.1.240.0360.03327.01
7.1.230.0320.04427.13
7.1.220.0320.04327.03
7.1.210.0320.04027.00
7.1.200.0370.03527.19
7.1.190.0320.04527.04
7.1.180.0380.04226.89
7.1.170.0310.04127.15
7.1.160.0450.04227.15
7.1.150.0390.03527.30
7.1.140.0530.03927.38
7.1.130.0490.03827.42
7.1.120.0570.04027.35
7.1.110.0530.03827.28
7.1.100.0480.04027.80
7.1.90.0350.04227.28
7.1.80.0590.04027.32
7.1.70.0410.03827.44
7.1.60.0360.04232.63
7.1.50.0590.03532.55
7.1.40.0570.03832.46
7.1.30.0420.03732.49
7.1.20.0420.03832.58
7.1.10.0310.03927.21
7.1.00.0420.04127.26
7.0.330.0400.05226.84
7.0.320.0300.04326.79
7.0.310.0300.04526.68
7.0.300.0230.04426.97
7.0.290.0250.05026.94
7.0.280.0290.04726.71
7.0.270.0560.04227.20
7.0.260.0330.04327.11
7.0.250.0360.04327.14
7.0.240.0710.04127.13
7.0.230.0340.04227.17
7.0.220.0870.04127.15
7.0.210.0520.04226.88
7.0.200.0530.04227.32
7.0.190.0490.03727.18
7.0.180.0350.04527.11
7.0.170.0280.04327.10
7.0.160.0470.03727.10
7.0.150.0370.04127.14
7.0.140.0370.04427.09
7.0.130.0380.04327.24
7.0.120.0410.04227.24
7.0.110.0420.04127.11
7.0.100.0320.04027.16
7.0.90.0280.03727.10
7.0.80.0250.03927.19
7.0.70.0360.04027.17
7.0.60.0480.03926.72
7.0.50.0310.04126.81
7.0.40.0520.03525.70
7.0.30.0340.04125.68
7.0.20.0770.04325.63
7.0.10.0670.05025.63
7.0.00.0860.04225.65
5.6.400.0610.14353.59
5.6.390.0510.13653.63
5.6.380.0470.12853.60
5.6.370.0470.13453.42
5.6.360.0530.13653.52
5.6.350.0490.14853.47
5.6.340.0500.12653.65
5.6.330.0580.11753.62
5.6.320.0620.11853.42
5.6.310.0460.12853.52
5.6.300.0430.12554.85
5.6.290.0480.14554.97
5.6.280.0430.13354.83
5.6.270.0490.12454.99
5.6.260.0420.14554.88
5.6.250.0400.14054.98
5.6.240.0360.13854.70
5.6.230.0420.13354.77
5.6.220.0410.13854.82
5.6.210.0480.12854.74
5.6.200.0450.13654.74
5.6.190.0340.13654.95
5.6.180.0510.13654.82
5.6.170.0400.13454.73
5.6.160.0440.13354.81
5.6.150.0500.13854.98
5.6.140.0450.13754.87
5.6.130.0440.13154.79
5.6.120.0470.13054.78
5.6.110.0500.14654.93
5.6.100.0420.14154.93
5.6.90.0380.13654.84
5.6.80.0540.12754.42
5.6.70.0450.13254.78
5.6.60.0510.11354.69
5.6.50.0390.14554.75
5.6.40.0540.13254.40
5.6.30.0450.13254.59
5.6.20.0440.13654.65
5.6.10.0440.14054.54
5.6.00.0490.12754.69
5.5.380.0400.13653.27
5.5.370.0440.13053.45
5.5.360.0460.14053.44
5.5.350.0420.14253.51
5.5.340.0380.13953.51
5.5.330.0390.14653.63
5.5.320.0560.13553.54
5.5.310.0500.13653.53
5.5.300.0490.13353.52
5.5.290.0480.13553.40
5.5.280.0440.13653.58
5.5.270.0480.13453.50
5.5.260.0470.13053.54
5.5.250.0420.13653.39
5.5.240.0430.14553.24
5.5.230.0420.13053.35
5.5.220.0360.13453.21
5.5.210.0420.13653.40
5.5.200.0420.12953.36
5.5.190.0510.13353.30
5.5.180.0410.13653.40
5.5.170.0580.12353.45
5.5.160.0420.14253.38
5.5.150.0420.13653.42
5.5.140.0490.14253.33
5.5.130.0450.12853.36
5.5.120.0430.13153.36
5.5.110.0440.14253.41
5.5.100.0400.13353.27
5.5.90.0480.13053.17
5.5.80.0500.12253.12
5.5.70.0380.13353.25
5.5.60.0400.13353.38
5.5.50.0400.12853.05
5.5.40.0450.12753.40
5.5.30.0490.14053.20
5.5.20.0490.14553.20
5.5.10.0420.13853.22
5.5.00.0510.13653.02

preferences:
32.8 ms | 401 KiB | 5 Q