3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Foo { public $a; } $foos = array(); for ($i = 10000; $i--;) { $foo = new Foo; $foo->a = 1; $foos[] = $foo; }
based on j8bMA

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.4.10.0070.01416.09
7.4.00.0080.01116.18
7.3.130.0060.01615.90
7.3.120.0080.01416.21
7.3.110.0050.01315.97
7.3.100.0100.01015.97
7.3.90.0060.01116.18
7.3.80.0030.00915.95
7.3.70.0090.00716.09
7.3.60.0020.01415.96
7.3.50.0050.01316.17
7.3.40.0120.00216.17
7.3.30.0120.00216.14
7.3.20.0080.00816.71
7.3.10.0090.00516.72
7.3.00.0010.01216.68
7.2.260.0090.01216.10
7.2.250.0110.01216.62
7.2.240.0090.00816.54
7.2.230.0020.01616.55
7.2.220.0080.00816.51
7.2.210.0050.01016.40
7.2.200.0060.01016.51
7.2.190.0100.01116.63
7.2.180.0090.00816.56
7.2.170.0070.00616.36
7.2.160.0000.01516.48
7.2.150.0110.00417.15
7.2.140.0100.00617.07
7.2.130.0080.00717.18
7.2.120.0120.00716.95
7.2.110.0110.00716.92
7.2.100.0190.00816.78
7.2.90.0180.00716.94
7.2.80.0100.00816.95
7.2.70.0080.00916.95
7.2.60.0110.00716.99
7.2.50.0170.00617.14
7.2.40.0110.01016.95
7.2.30.0130.00817.06
7.2.20.0240.01016.90
7.2.10.0130.00816.88
7.2.00.0120.00817.51
7.1.330.0070.01116.07
7.1.320.0070.00916.02
7.1.310.0080.01016.16
7.1.300.0070.01116.02
7.1.290.0090.00816.12
7.1.280.0070.00916.00
7.1.270.0010.01315.93
7.1.260.0060.00915.97
7.1.250.0030.01416.09
7.1.240.0120.01215.65
7.1.230.0130.00815.77
7.1.220.0150.00715.75
7.1.210.0130.01015.72
7.1.200.0100.01015.72
7.1.190.0110.01215.70
7.1.180.0140.00815.74
7.1.170.0130.01115.63
7.1.160.0120.00815.82
7.1.150.0100.01015.69
7.1.140.0160.00715.67
7.1.130.0140.00815.77
7.1.120.0140.01015.65
7.1.110.0130.01115.73
7.1.100.0060.01216.36
7.1.90.0110.00915.69
7.1.80.0100.01015.81
7.1.70.0060.01016.16
7.1.60.0080.00916.28
7.1.50.0100.01216.12
7.1.40.0070.01716.05
7.1.30.0130.00916.13
7.1.20.0090.00816.06
7.1.10.0080.00916.03
7.1.00.0090.00716.01
7.0.330.0050.01015.72
7.0.320.0160.00615.45
7.0.310.0160.00915.53
7.0.300.0120.01115.32
7.0.290.0170.00815.67
7.0.280.0160.01015.41
7.0.270.0150.01115.48
7.0.260.0190.00815.40
7.0.250.0150.00915.55
7.0.240.0240.00815.40
7.0.230.0170.01015.44
7.0.220.0110.00815.55
7.0.210.0170.00915.63
7.0.200.0120.00915.82
7.0.190.0070.00915.85
7.0.180.0080.01215.83
7.0.170.0100.01015.74
7.0.160.0080.00815.84
7.0.150.0080.00715.79
7.0.140.0110.00615.86
7.0.130.0120.00816.05
7.0.120.0110.01016.00
7.0.110.0060.01315.77
7.0.100.0080.01115.73
7.0.90.0130.00815.78
7.0.80.0090.01115.82
7.0.70.0080.01015.77
7.0.60.0120.00915.71
7.0.50.0120.00715.74
7.0.40.0110.00714.73
7.0.30.0090.01014.73
7.0.20.0100.01114.71
7.0.10.0130.00914.77
7.0.00.0130.00714.78
5.6.400.0070.01618.13
5.6.390.0060.01217.85
5.6.380.0080.01417.92
5.6.370.0050.01917.98
5.6.360.0110.01717.85
5.6.350.0110.01217.88
5.6.340.0110.01617.97
5.6.330.0090.01517.99
5.6.320.0110.01618.08
5.6.310.0140.01318.02
5.6.300.0110.02019.55
5.6.290.0080.02219.45
5.6.280.0110.02319.41
5.6.270.0080.02319.53
5.6.260.0070.02619.67
5.6.250.0090.02119.74
5.6.240.0090.03019.58
5.6.230.0080.03019.63
5.6.220.0070.02319.49
5.6.210.0110.02919.46
5.6.200.0070.02519.55
5.6.190.0090.02019.59
5.6.180.0120.02119.52
5.6.170.0080.02119.52
5.6.160.0090.02119.49
5.6.150.0120.01819.46
5.6.140.0100.02119.42
5.6.130.0110.02219.48
5.6.120.0070.02519.56
5.6.110.0090.02119.44
5.6.100.0160.01919.40
5.6.90.0090.02419.52
5.6.80.0060.02419.39
5.6.70.0070.03619.33
5.6.60.0080.02119.29
5.6.50.0100.02019.25
5.6.40.0090.02319.16
5.6.30.0120.02119.32
5.6.20.0070.02319.21
5.6.10.0090.02219.28
5.6.00.0050.02419.33
5.5.380.0080.03417.87
5.5.370.0090.04817.77
5.5.360.0100.02917.69
5.5.350.0130.02517.76
5.5.340.0070.03017.95
5.5.330.0110.02718.02
5.5.320.0060.03718.12
5.5.310.0130.03518.00
5.5.300.0110.02718.04
5.5.290.0190.03118.00
5.5.280.0140.02617.97
5.5.270.0070.03117.93
5.5.260.0060.04117.93
5.5.250.0090.02617.73
5.5.240.0090.02617.51
5.5.230.0070.03017.52
5.5.220.0100.02617.74
5.5.210.0060.03017.53
5.5.200.0070.02817.70
5.5.190.0090.02517.62
5.5.180.0090.02817.58
5.5.170.0130.02217.61
5.5.160.0100.02717.59
5.5.150.0080.03017.62
5.5.140.0070.02717.75
5.5.130.0100.02917.60
5.5.120.0080.02817.61
5.5.110.0000.04117.55
5.5.100.0090.03217.69
5.5.90.0060.03017.64
5.5.80.0110.02717.48
5.5.70.0020.03717.70
5.5.60.0110.02717.66
5.5.50.0060.02817.44
5.5.40.0100.02817.56
5.5.30.0120.02017.48
5.5.20.0080.02417.73
5.5.10.0060.02617.71
5.5.00.0090.02517.66
5.4.450.0060.03318.47
5.4.440.0110.02618.70
5.4.430.0110.02318.64
5.4.420.0090.03018.66
5.4.410.0100.02618.64
5.4.400.0020.03118.43
5.4.390.0130.03118.40
5.4.380.0110.02718.52
5.4.370.0100.02518.34
5.4.360.0090.02518.34
5.4.350.0110.02518.43
5.4.340.0280.02718.43
5.4.330.0170.01314.29
5.4.320.0110.05218.26
5.4.310.0090.02818.59
5.4.300.0130.02318.38
5.4.290.0080.02818.38
5.4.280.0110.02518.36
5.4.270.0110.02318.25
5.4.260.0080.02618.36
5.4.250.0090.02918.40
5.4.240.0050.02718.39
5.4.230.0100.02318.33
5.4.220.0130.02618.34
5.4.210.0030.03318.26
5.4.200.0090.02418.40
5.4.190.0140.02518.44
5.4.180.0110.02418.34
5.4.170.0080.02818.29
5.4.160.0020.03318.34
5.4.150.0070.02718.43
5.4.140.0120.02217.21
5.4.130.0120.02017.07
5.4.120.0090.02917.20
5.4.110.0070.03117.29
5.4.100.0030.03217.22
5.4.90.0070.02717.10
5.4.80.0090.02917.31
5.4.70.0030.03017.32
5.4.60.0080.02217.25
5.4.50.0060.02817.17
5.4.40.0080.03017.32
5.4.30.0050.02917.29
5.4.20.0050.03817.07
5.4.10.0080.02717.29
5.4.00.0090.03016.92
5.3.290.0210.02518.31
5.3.280.0040.03618.08
5.3.270.0070.03018.21
5.3.260.0110.03318.08
5.3.250.0060.03218.10
5.3.240.0070.03218.04
5.3.230.0180.03218.17
5.3.220.0110.02818.13
5.3.210.0080.03518.12
5.3.200.0070.03018.13
5.3.190.0070.03318.10
5.3.180.0020.04418.04
5.3.170.0070.03618.13
5.3.160.0110.02818.10
5.3.150.0110.02518.26
5.3.140.0200.02518.21
5.3.130.0100.02718.22
5.3.120.0080.03218.15
5.3.110.0100.03418.20
5.3.100.0090.03017.79
5.3.90.0130.02517.87
5.3.80.0090.03417.71
5.3.70.0080.03417.74
5.3.60.0110.03917.81
5.3.50.0110.05217.59
5.3.40.0000.03617.59
5.3.30.0130.02817.62
5.3.20.0060.03717.58
5.3.10.0060.04317.36
5.3.00.0100.03017.43
5.2.170.0050.03815.35
5.2.160.0050.03015.30
5.2.150.0090.02315.30
5.2.140.0070.02315.29
5.2.130.0070.03115.27
5.2.120.0120.02815.27
5.2.110.0140.02415.31
5.2.100.0040.03715.27
5.2.90.0080.03615.23
5.2.80.0060.02815.20
5.2.70.0180.02715.21
5.2.60.0100.02815.20
5.2.50.0070.02915.19
5.2.40.0070.02715.32
5.2.30.0030.03115.21
5.2.20.0100.02115.32
5.2.10.0110.02015.27
5.2.00.0100.02814.95
5.1.60.0070.02615.50
5.1.50.0100.02315.58
5.1.40.0120.01915.68
5.1.30.0130.01815.66
5.1.20.0110.02715.63
5.1.10.0120.02615.59
5.1.00.0080.02315.60
5.0.50.0090.02015.01
5.0.40.0090.02115.03
5.0.30.0080.02614.94
5.0.20.0040.02614.97
5.0.10.0060.02414.95
5.0.00.0080.02914.94
4.4.90.0030.00914.23
4.4.80.0030.00814.23
4.4.70.0000.01214.23
4.4.60.0020.01014.23
4.4.50.0000.01114.23
4.4.40.0020.01614.23
4.4.30.0040.00914.23
4.4.20.0050.00714.23
4.4.10.0050.00814.23
4.4.00.0030.01414.23
4.3.110.0020.00914.23
4.3.100.0050.00714.23
4.3.90.0000.01214.23
4.3.80.0000.01614.23
4.3.70.0060.01414.23
4.3.60.0020.01014.23
4.3.50.0020.01114.23
4.3.40.0030.01414.23
4.3.30.0040.00714.23
4.3.20.0040.01114.23
4.3.10.0010.01214.23
4.3.00.0040.00914.23