3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop; } $foo = new Foo(); $str = 'abc'; // $str is a string $foo->prop = &$str; var_dump($foo->prop); // "abc" $arr = array(); $foo->prop = $arr; var_dump($foo->prop); // array() var_dump($str); // array() - surprise! $str is now an array

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.4.10.0090.00017.74
8.3.140.0030.00716.55
8.3.130.0110.00416.80
8.3.120.0090.00020.92
8.3.110.0090.00020.94
8.3.100.0060.00316.80
8.3.90.0140.00426.77
8.3.80.0060.00316.63
8.3.70.0140.00716.58
8.3.60.0040.01118.15
8.3.50.0070.00718.33
8.3.40.0140.00718.62
8.3.30.0090.00618.54
8.3.20.0000.00721.70
8.3.10.0080.00020.34
8.3.00.0000.00722.29
8.2.260.0090.00916.81
8.2.250.0000.00818.25
8.2.240.0090.00020.40
8.2.230.0000.00822.58
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0140.00716.88
8.2.180.0160.00025.92
8.2.170.0100.00718.87
8.2.160.0030.01022.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.65
8.2.110.0060.00619.19
8.2.100.0030.00917.72
8.2.90.0030.00518.16
8.2.80.0000.00917.97
8.2.70.0080.00017.91
8.2.60.0030.00617.93
8.2.50.0000.00817.80
8.2.40.0040.00419.22
8.2.30.0000.00717.88
8.2.20.0040.00418.00
8.2.10.0040.00419.18
8.2.00.0040.00419.39
8.1.310.0030.00516.67
8.1.300.0030.00619.69
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0080.00020.55
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00622.72
8.1.230.0070.00520.62
8.1.220.0000.00817.74
8.1.210.0000.00819.04
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00417.62
8.1.160.0070.00018.84
8.1.150.0040.00418.49
8.1.140.0000.00720.91
8.1.130.0030.00320.09
8.1.120.0000.00817.39
8.1.110.0000.00817.44
8.1.100.0000.00717.42
8.1.90.0070.00317.40
8.1.80.0040.00417.47
8.1.70.0070.00017.28
8.1.60.0000.00717.55
8.1.50.0030.00517.50
8.1.40.0040.00417.41
8.1.30.0000.00817.45
8.1.20.0080.00017.59
8.1.10.0080.00017.56
8.1.00.0000.00717.41
8.0.300.0000.00719.94
8.0.290.0050.00316.63
8.0.280.0030.00318.43
8.0.270.0030.00316.72
8.0.260.0000.00721.73
8.0.250.0040.00416.84
8.0.240.0000.00616.78
8.0.230.0030.00316.90
8.0.220.0030.00316.73
8.0.210.0030.00316.84
8.0.200.0030.00316.91
8.0.190.0000.00716.88
8.0.180.0040.00416.79
8.0.170.0040.00416.77
8.0.160.0000.00816.80
8.0.150.0000.00716.79
8.0.140.0040.00416.80
8.0.130.0060.00013.22
8.0.120.0080.00016.73
8.0.110.0030.00516.82
8.0.100.0040.00416.90
8.0.90.0000.00816.63
8.0.80.0070.00716.83
8.0.70.0000.00716.71
8.0.60.0000.00716.88
8.0.50.0040.00416.79
8.0.30.0100.00716.99
8.0.20.0070.01216.84
8.0.10.0030.00316.98
8.0.00.0170.00016.78
7.4.330.0060.00015.55
7.4.320.0000.00616.59
7.4.300.0000.00716.36
7.4.290.0050.00216.35
7.4.280.0000.00816.52
7.4.270.0070.00016.34
7.4.260.0030.00616.46
7.4.250.0050.00216.42
7.4.240.0020.00516.50
7.4.230.0070.00016.53
7.4.220.0040.00416.55
7.4.210.0110.00816.51
7.4.200.0070.00016.50
7.4.140.0070.01517.86
7.4.130.0150.00316.55
7.4.120.0120.00516.53
7.4.110.0160.00316.45
7.4.100.0110.00716.41
7.4.90.0140.00716.45
7.4.80.0110.00519.39
7.4.70.0100.00616.36
7.4.60.0070.01716.32
7.4.50.0040.01116.55
7.4.40.0100.00616.30
7.4.00.0070.00814.80
7.3.330.0070.00016.31
7.3.320.0060.00013.31
7.3.310.0000.00816.11
7.3.300.0030.00316.33
7.3.290.0000.00716.30
7.3.280.0060.00916.27
7.3.260.0110.00616.36
7.3.240.0080.00816.34
7.3.230.0150.00316.48
7.3.210.0130.00316.49
7.3.200.0070.01116.64
7.3.190.0060.01116.25
7.3.180.0080.01316.40
7.3.170.0060.01016.30
7.3.160.0130.00316.63
7.3.120.0080.00914.92
7.3.110.0050.01514.75
7.3.100.0080.00814.72
7.3.90.0080.00814.66
7.3.80.0080.00814.72
7.3.70.0100.00514.64
7.3.60.0050.01114.52
7.3.50.0060.00714.61
7.3.40.0040.01114.64
7.3.30.0080.00814.67
7.3.20.0060.00816.08
7.3.10.0060.01016.12
7.3.00.0110.00515.92
7.2.330.0130.00616.41
7.2.320.0000.01816.41
7.2.310.0100.00716.29
7.2.300.0090.01316.46
7.2.290.0060.01016.37
7.2.250.0080.01114.85
7.2.240.0070.01214.96
7.2.230.0110.00414.94
7.2.220.0100.00515.01
7.2.210.0080.00714.78
7.2.200.0080.00814.99
7.2.190.0070.00814.94
7.2.180.0060.01214.92
7.2.170.0050.01415.01
7.2.160.0100.00714.98
7.2.150.0080.00616.12
7.2.140.0070.00916.20
7.2.130.0090.00916.17
7.2.120.0070.01016.20
7.2.110.0130.00716.25
7.2.100.0080.00616.20
7.2.90.0100.00716.13
7.2.80.0080.00716.13
7.2.70.0070.01116.21
7.2.60.0110.00716.19
7.2.50.0120.00716.16
7.2.40.0070.00916.03
7.2.30.0090.00716.25
7.2.20.0080.00716.17
7.2.10.0120.00616.15
7.2.00.0060.01016.23
7.1.330.0050.01415.77
7.1.320.0050.00915.19
7.1.310.0090.00815.22
7.1.300.0120.00815.38
7.1.290.0070.01015.34
7.1.280.0070.01115.32
7.1.270.0090.00815.22
7.1.260.0070.00715.37
7.1.250.0090.00515.04
7.1.240.0030.01215.76
7.1.230.0030.00715.78
7.1.220.0080.00815.86
7.1.210.0140.00015.64
7.1.200.0110.00415.80
7.1.190.0040.01115.87
7.1.180.0090.00315.77
7.1.170.0060.00615.76
7.1.160.0030.01315.86
7.1.150.0070.01015.95
7.1.140.0090.00615.61
7.1.130.0070.00715.84
7.1.120.0000.01015.76
7.1.110.0000.01315.98
7.1.100.0060.00915.65
7.1.90.0040.01115.68
7.1.80.0000.00915.60
7.1.70.0040.00415.81
7.1.60.0030.00915.98
7.1.50.0040.01115.74
7.1.40.0040.01115.96
7.1.30.0060.01015.55
7.1.20.0100.01015.71
7.1.10.0070.00715.79
7.1.00.0070.01315.78

preferences:
28.57 ms | 403 KiB | 5 Q