3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { public $i; }; $a = aray(new c,new c, new c); $a[0]->i = 1; $a[0]->i = 2; $a[0]->i = 3; $b = $a; var_dump($b);

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.00916.63
8.3.50.0140.00521.02
8.3.40.0070.00718.80
8.3.30.0030.01018.83
8.3.20.0070.00720.19
8.3.10.0030.00523.48
8.3.00.0000.00821.67
8.2.180.0120.00616.63
8.2.170.0070.00722.96
8.2.160.0030.01020.13
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0000.00721.07
8.2.120.0070.00026.35
8.2.110.0030.00619.27
8.2.100.0030.00817.91
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0000.00917.91
8.2.50.0030.00518.07
8.2.40.0090.00020.63
8.2.30.0040.00419.42
8.2.20.0000.00817.63
8.2.10.0000.00817.99
8.2.00.0000.00718.04
8.1.280.0070.00725.92
8.1.270.0030.01422.00
8.1.260.0070.00028.09
8.1.250.0050.00228.09
8.1.240.0030.00622.46
8.1.230.0070.00319.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0080.00017.35
8.1.180.0060.00718.10
8.1.170.0040.00418.52
8.1.160.0040.00420.66
8.1.150.0080.00020.42
8.1.140.0090.00019.52
8.1.130.0000.00717.57
8.1.120.0070.00017.37
8.1.110.0040.00417.23
8.1.100.0000.00817.21
8.1.90.0000.00817.27
8.1.80.0070.00017.30
8.1.70.0030.00317.32
8.1.60.0050.00317.43
8.1.50.0050.00317.35
8.1.40.0000.00717.47
8.1.30.0000.00817.55
8.1.20.0000.00817.52
8.1.10.0040.00417.46
8.1.00.0030.00617.32
8.0.300.0000.00818.77
8.0.290.0030.00516.75
8.0.280.0070.00018.31
8.0.270.0000.00717.27
8.0.260.0000.00617.11
8.0.250.0040.00416.84
8.0.240.0050.00216.93
8.0.230.0000.00716.88
8.0.220.0000.00716.77
8.0.210.0040.00416.88
8.0.200.0000.00616.91
8.0.190.0030.00916.93
8.0.180.0040.00416.91
8.0.170.0000.00716.84
8.0.160.0040.00416.80
8.0.150.0040.00416.71
8.0.140.0000.00816.85
8.0.130.0000.00513.39
8.0.120.0030.00616.69
8.0.110.0040.00416.89
8.0.100.0040.00416.84
8.0.90.0040.00416.71
8.0.80.0070.01016.92
8.0.70.0000.00816.92
8.0.60.0050.00216.79
8.0.50.0050.00216.71
8.0.30.0150.00417.22
8.0.20.0150.00517.40
8.0.10.0070.00016.96
8.0.00.0070.01016.54
7.4.330.0020.00316.83
7.4.320.0000.00616.46
7.4.300.0000.00716.57
7.4.290.0060.00016.55
7.4.280.0000.00716.42
7.4.270.0030.00316.58
7.4.260.0030.00316.48
7.4.250.0070.00016.42
7.4.240.0000.00716.57
7.4.230.0040.00416.62
7.4.220.0180.00916.49
7.4.210.0100.00716.39
7.4.200.0000.00816.32
7.4.160.0040.01216.60
7.4.150.0130.01017.40
7.4.140.0140.00717.86
7.4.130.0140.00316.41
7.4.120.0140.00416.46
7.4.110.0120.01216.49
7.4.100.0100.01316.57
7.4.90.0130.01016.50
7.4.80.0090.00919.39
7.4.70.0160.00316.29
7.4.60.0100.00716.56
7.4.50.0070.00716.52
7.4.40.0140.00316.45
7.4.30.0070.01416.60
7.4.10.0100.01014.95
7.4.00.0110.00615.00
7.3.330.0050.00013.26
7.3.320.0000.00513.27
7.3.310.0000.00716.29
7.3.300.0030.00316.30
7.3.290.0060.01216.30
7.3.280.0080.00816.28
7.3.270.0100.00717.40
7.3.260.0070.01016.64
7.3.240.0030.01416.38
7.3.230.0150.00316.39
7.3.210.0110.00516.43
7.3.200.0060.01619.39
7.3.190.0070.01016.60
7.3.180.0100.00416.11
7.3.170.0110.00616.32
7.3.160.0060.00916.31
7.3.130.0070.01014.69
7.3.120.0060.00914.77
7.3.110.0070.01014.69
7.3.100.0040.00714.68
7.3.90.0060.00614.64
7.3.80.0090.00314.53
7.3.70.0080.00414.88
7.3.60.0080.00414.58
7.3.50.0070.00714.89
7.3.40.0030.01014.58
7.3.30.0000.01114.77
7.3.20.0110.00416.68
7.3.10.0090.00916.37
7.3.00.0110.00316.53
7.2.330.0120.00416.63
7.2.320.0060.01216.50
7.2.310.0120.00616.65
7.2.300.0130.00316.60
7.2.290.0210.00016.57
7.2.260.0080.01214.60
7.2.250.0130.00615.13
7.2.240.0030.01314.82
7.2.230.0120.00314.84
7.2.220.0160.00014.74
7.2.210.0030.01014.74
7.2.200.0030.01314.69
7.2.190.0070.01014.72
7.2.180.0090.00314.79
7.2.170.0060.01014.69
7.2.160.0000.01614.81
7.2.150.0060.00616.78
7.2.140.0070.01116.62
7.2.130.0040.00816.77
7.2.120.0080.00816.68
7.2.110.0050.00916.71
7.2.100.0090.00716.65
7.2.90.0040.01116.66
7.2.80.0110.00716.58
7.2.70.0110.00616.60
7.2.60.0020.01116.66
7.2.50.0030.00816.86
7.2.40.0030.01116.72
7.2.30.0100.00616.76
7.2.20.0060.00616.62
7.2.10.0050.00916.71
7.2.00.0060.01117.61
7.1.330.0030.01015.30
7.1.320.0120.00315.52
7.1.310.0030.01215.46
7.1.300.0030.01015.68
7.1.290.0060.00315.63
7.1.280.0040.01215.57
7.1.270.0150.00615.55
7.1.260.0070.01315.45
7.1.250.0060.00915.48
7.1.240.0030.01315.74
7.1.230.0120.00615.64
7.1.220.0060.01215.29
7.1.210.0030.00915.53
7.1.200.0070.00615.61
7.1.190.0060.00615.45
7.1.180.0060.00315.52
7.1.170.0070.00715.72
7.1.160.0000.01015.34
7.1.150.0110.00615.67
7.1.140.0060.00315.70
7.1.130.0120.00315.64
7.1.120.0000.01415.60
7.1.110.0030.00915.54
7.1.100.0050.00816.60
7.1.90.0070.01115.33
7.1.80.0070.01015.46
7.1.70.0060.00616.28
7.1.60.0060.01317.52
7.1.50.0020.01116.06
7.1.40.0000.01115.65
7.1.30.0000.01315.45
7.1.20.0030.01315.30
7.1.10.0030.00915.63
7.1.00.0100.03818.99
7.0.330.0060.00315.49
7.0.320.0060.00314.96
7.0.310.0060.00915.20
7.0.300.0030.00615.32
7.0.290.0030.01315.21
7.0.280.0100.00615.28
7.0.270.0040.00415.34
7.0.260.0100.00315.43
7.0.250.0000.00815.37
7.0.240.0090.00615.09
7.0.230.0060.00615.27
7.0.220.0030.01415.41
7.0.210.0030.00515.19
7.0.200.0040.00716.10
7.0.190.0050.00515.21
7.0.180.0090.00315.48
7.0.170.0040.01415.18
7.0.160.0060.00915.21
7.0.150.0040.00815.07
7.0.140.0070.00715.23
7.0.130.0070.00715.16
7.0.120.0070.01015.19
7.0.110.0040.00815.11
7.0.100.0030.01015.20
7.0.90.0080.00415.20
7.0.80.0000.01415.34
7.0.70.0120.00615.27
7.0.60.0070.02218.53
7.0.50.0100.02816.62
7.0.40.0080.04816.77
7.0.30.0200.02316.71
7.0.20.0120.04716.64
7.0.10.0000.02916.77
7.0.00.0030.03216.79
5.6.400.0090.00614.35
5.6.390.0040.01113.98
5.6.380.0080.00814.21
5.6.370.0070.01013.98
5.6.360.0040.01114.10
5.6.350.0090.00614.20
5.6.340.0120.00614.39
5.6.330.0070.01013.97
5.6.320.0130.00013.83
5.6.310.0000.01114.26
5.6.300.0000.01414.20
5.6.290.0070.00714.14
5.6.280.0100.00713.91
5.6.270.0060.00614.23
5.6.260.0070.00713.99
5.6.250.0040.01113.96
5.6.240.0040.01214.04
5.6.230.0000.01513.97
5.6.220.0060.01314.11
5.6.210.0140.03817.53
5.6.200.0030.03816.31
5.6.190.0050.02617.32
5.6.180.0160.03217.21
5.6.170.0130.03417.26
5.6.160.0100.04517.24
5.6.150.0020.02616.18
5.6.140.0100.04216.15
5.6.130.0050.02516.17
5.6.120.0060.02917.48
5.6.110.0060.02217.45
5.6.100.0130.04217.63
5.6.90.0080.03817.52
5.6.80.0020.02717.32
5.6.70.0030.00613.91
5.6.60.0040.00414.00
5.6.50.0060.00313.93
5.6.40.0100.00314.11
5.6.30.0040.00413.96
5.6.20.0060.00913.79
5.6.10.0000.01514.20
5.6.00.0070.00714.04
5.5.380.0060.00913.64
5.5.370.0090.00614.04
5.5.360.0000.01014.06
5.5.350.0130.04617.23
5.5.340.0080.02215.85
5.5.330.0050.03617.29
5.5.320.0350.03617.06
5.5.310.0100.02717.33
5.5.300.0040.02415.89
5.5.290.0070.02415.85
5.5.280.0130.03617.56
5.5.270.0040.03517.35
5.5.260.0120.03717.55
5.5.250.0040.02817.36
5.5.240.0170.02517.02
5.5.230.0040.01113.73
5.5.220.0120.00013.94
5.5.210.0060.00913.83
5.5.200.0070.00713.52
5.5.190.0030.00613.89
5.5.180.0040.01113.95
5.5.170.0000.00913.89
5.5.160.0110.00013.60
5.5.150.0040.00813.80
5.5.140.0040.00914.11
5.5.130.0040.01113.84
5.5.120.0120.00313.94
5.5.110.0100.00313.95
5.5.100.0000.01113.79
5.5.90.0050.00513.89
5.5.80.0030.01013.77
5.5.70.0060.00613.67
5.5.60.0040.00813.75
5.5.50.0070.00413.89
5.5.40.0080.00014.04
5.5.30.0070.00713.52
5.5.20.0040.00813.87
5.5.10.0090.00613.89
5.5.00.0030.01013.85

preferences:
48.08 ms | 401 KiB | 5 Q