3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public $te1; public $te2; } $tCollection = []; for($i=0;$i<10;$i++) { $t = new T(); $t->te1 = random(); $t->te2 = random(); $tCollection[] = $t; } var_dump($tCollection);

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.0090.00616.75
8.3.50.0040.01116.35
8.3.40.0150.00318.97
8.3.30.0070.00718.72
8.3.20.0080.00022.02
8.3.10.0040.00423.71
8.3.00.0000.00817.84
8.2.180.0100.01018.39
8.2.170.0030.01222.96
8.2.160.0110.00422.26
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00422.19
8.2.120.0050.00326.35
8.2.110.0090.00020.51
8.2.100.0080.00417.72
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0090.00017.80
8.2.50.0000.00818.10
8.2.40.0070.00020.61
8.2.30.0040.00419.10
8.2.20.0000.00817.88
8.2.10.0060.00318.06
8.2.00.0000.00718.02
8.1.280.0100.00725.92
8.1.270.0000.00823.88
8.1.260.0040.00426.35
8.1.250.0090.00928.09
8.1.240.0080.00321.86
8.1.230.0100.00321.04
8.1.220.0090.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0030.00319.02
8.1.150.0000.00718.72
8.1.140.0000.00719.39
8.1.130.0060.00318.83
8.1.120.0040.00417.43
8.1.110.0040.00417.43
8.1.100.0000.00817.29
8.1.90.0040.00417.32
8.1.80.0050.00317.30
8.1.70.0030.00317.30
8.1.60.0080.00317.43
8.1.50.0000.00717.41
8.1.40.0040.00417.54
8.1.30.0080.00317.59
8.1.20.0040.00417.61
8.1.10.0040.00417.52
8.1.00.0030.00617.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.34
8.0.270.0030.00317.21
8.0.260.0000.00618.39
8.0.250.0040.00417.01
8.0.240.0060.00316.90
8.0.230.0070.00016.93
8.0.220.0030.00316.86
8.0.210.0040.00416.88
8.0.200.0000.00716.99
8.0.190.0090.00016.93
8.0.180.0020.00516.79
8.0.170.0000.00716.93
8.0.160.0070.00016.90
8.0.150.0000.00816.82
8.0.140.0000.00816.86
8.0.130.0030.00313.36
8.0.120.0000.00816.89
8.0.110.0030.00516.78
8.0.100.0070.00016.79
8.0.90.0040.00416.77
8.0.80.0070.01016.89
8.0.70.0050.00316.94
8.0.60.0030.00516.96
8.0.50.0040.00416.79
8.0.30.0130.00417.04
8.0.20.0120.00917.40
8.0.10.0040.00417.08
8.0.00.0080.00816.60
7.4.330.0000.00515.55
7.4.320.0000.00716.54
7.4.300.0000.00616.61
7.4.290.0000.00916.50
7.4.280.0000.00716.59
7.4.270.0000.00716.61
7.4.260.0080.00016.48
7.4.250.0080.00016.46
7.4.240.0000.00716.59
7.4.230.0030.00316.36
7.4.220.0130.01316.45
7.4.210.0060.00916.63
7.4.200.0000.00616.71
7.4.160.0060.00916.50
7.4.150.0110.00817.40
7.4.140.0110.00717.86
7.4.130.0130.00616.71
7.4.120.0120.00916.54
7.4.110.0130.01016.52
7.4.100.0090.00916.41
7.4.90.0130.00316.63
7.4.80.0150.00919.39
7.4.70.0030.01216.49
7.4.60.0100.00716.45
7.4.50.0060.00916.58
7.4.40.0090.00916.59
7.4.30.0160.00016.60
7.4.00.0060.00914.68
7.3.330.0000.00613.31
7.3.320.0060.00013.33
7.3.310.0020.00516.37
7.3.300.0030.00316.24
7.3.290.0030.00316.38
7.3.280.0070.00916.35
7.3.270.0060.01317.40
7.3.260.0090.00716.31
7.3.250.0120.00716.48
7.3.240.0140.00516.44
7.3.230.0070.01116.40
7.3.210.0060.01116.50
7.3.200.0060.00916.25
7.3.190.0100.00716.63
7.3.180.0150.00016.52
7.3.170.0150.00616.57
7.3.160.0070.01016.31
7.3.00.0070.01016.70
7.2.330.0100.01416.44
7.2.320.0150.00316.55
7.2.310.0140.00316.45
7.2.300.0100.01316.62
7.2.290.0070.01016.54
7.2.130.0120.00016.87
7.2.120.0030.00917.11
7.2.110.0030.01016.83
7.2.100.0090.00616.86
7.2.90.0040.00816.73
7.2.80.0030.01016.59
7.2.70.0030.01316.96
7.2.60.0030.01016.66
7.2.50.0140.00316.77
7.2.40.0120.00316.88
7.2.30.0070.00716.96
7.2.20.0090.00616.95
7.2.10.0000.01416.96
7.2.00.0060.00618.12
7.1.250.0000.01315.71
7.1.240.0030.00615.73
7.1.230.0050.00515.46
7.1.220.0070.00415.71
7.1.210.0070.00715.78
7.1.200.0050.00515.70
7.1.190.0050.00315.68
7.1.180.0030.01015.73
7.1.170.0060.00315.71
7.1.160.0040.01415.84
7.1.150.0070.00715.73
7.1.140.0030.00715.79
7.1.130.0070.00715.61
7.1.120.0100.00315.45
7.1.110.0040.00715.70
7.1.100.0020.01116.62
7.1.90.0060.00615.84
7.1.80.0050.00515.68
7.1.70.0050.00916.29
7.1.60.0100.01225.32
7.1.50.0130.01025.26
7.1.40.0080.01324.81
7.1.30.0050.01425.07
7.1.20.0120.00825.04
7.1.10.0050.01015.92
7.1.00.0060.00816.17
7.0.330.0030.00615.06
7.0.320.0000.00815.36
7.0.310.0040.00715.26
7.0.300.0070.01015.23
7.0.290.0040.00715.37
7.0.280.0030.01015.36
7.0.270.0060.00615.14
7.0.260.0030.00615.18
7.0.250.0050.00315.27
7.0.240.0030.00715.41
7.0.230.0040.01015.22
7.0.220.0100.00315.21
7.0.210.0100.00315.38
7.0.200.0070.00616.09
7.0.190.0030.00916.03
7.0.180.0050.00915.75
7.0.170.0070.00315.66
7.0.160.0110.00115.75
7.0.150.0020.01215.69
7.0.140.0050.00815.76
7.0.130.0050.00815.79
7.0.120.0020.01015.77
7.0.110.0080.00615.66
7.0.100.0050.00915.67
7.0.90.0040.00915.84
7.0.80.0060.00915.80
7.0.70.0020.01415.75
7.0.60.0030.01215.54
7.0.50.0040.00615.77
7.0.40.0070.00714.84
7.0.30.0060.00514.82
7.0.20.0030.01014.83
7.0.10.0050.01014.84
7.0.00.0030.00814.83
5.6.380.0100.00314.24

preferences:
35.23 ms | 401 KiB | 5 Q