3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public $baz; } $a = new Foo(); $b = &$a; $a->bar = 42; $b->baz = 43; var_dump($a, $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.4.20.0090.01317.55
8.4.10.0080.00817.63
8.3.150.0060.00318.25
8.3.140.0180.00018.87
8.3.130.0040.00418.60
8.3.120.0030.00619.04
8.3.110.0120.00616.49
8.3.100.0090.00024.06
8.3.90.0050.00326.77
8.3.80.0030.00618.55
8.3.70.0080.00816.49
8.3.60.0110.00716.38
8.3.50.0090.01021.08
8.3.40.0070.01018.72
8.3.30.0080.00818.57
8.3.20.0080.00018.78
8.3.10.0050.00319.93
8.3.00.0040.00419.16
8.2.260.0040.01516.81
8.2.250.0000.00818.30
8.2.240.0050.00517.32
8.2.230.0060.00320.94
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0000.00916.75
8.2.190.0110.00416.58
8.2.180.0000.01916.38
8.2.170.0070.01022.96
8.2.160.0120.00619.08
8.2.150.0110.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00021.13
8.2.120.0070.00026.35
8.2.110.0150.00420.52
8.2.100.0120.00017.73
8.2.90.0050.00317.91
8.2.80.0040.00417.97
8.2.70.0060.00317.68
8.2.60.0030.00517.85
8.2.50.0040.00418.10
8.2.40.0040.00420.46
8.2.30.0080.00019.24
8.2.20.0030.00517.49
8.2.10.0030.00517.86
8.2.00.0000.00717.98
8.1.310.0110.00416.74
8.1.300.0040.00416.23
8.1.290.0030.00730.84
8.1.280.0070.01125.92
8.1.270.0050.00323.84
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0100.00722.52
8.1.230.0040.00822.73
8.1.220.0040.00417.74
8.1.210.0100.00018.77
8.1.200.0100.00017.36
8.1.190.0030.00617.35
8.1.180.0000.00918.10
8.1.170.0030.00518.34
8.1.160.0000.00718.69
8.1.150.0040.00418.68
8.1.140.0040.00419.49
8.1.130.0030.00317.50
8.1.120.0000.00817.41
8.1.110.0070.00017.29
8.1.100.0040.00417.41
8.1.90.0000.00717.37
8.1.80.0040.00417.40
8.1.70.0030.00317.41
8.1.60.0040.00417.50
8.1.50.0030.00717.45
8.1.40.0040.00417.43
8.1.30.0050.00517.57
8.1.20.0000.00817.56
8.1.10.0040.00417.27
8.1.00.0040.00417.42
8.0.300.0000.00719.98
8.0.290.0070.00316.63
8.0.280.0070.00018.31
8.0.270.0040.00417.05
8.0.260.0000.00617.15
8.0.250.0000.00716.89
8.0.240.0040.00416.79
8.0.230.0000.00716.88
8.0.220.0060.00316.86
8.0.210.0070.00016.71
8.0.200.0030.00316.80
8.0.190.0030.00516.88
8.0.180.0000.00716.81
8.0.170.0000.00716.72
8.0.160.0040.00416.87
8.0.150.0070.00016.72
8.0.140.0040.00416.67
8.0.130.0030.00313.29
8.0.120.0050.00316.84
8.0.110.0040.00416.76
8.0.100.0070.00016.69
8.0.90.0070.00016.62
8.0.80.0060.01316.83
8.0.70.0000.00716.84
8.0.60.0030.00616.91
8.0.50.0000.00716.83
8.0.30.0100.00716.79
8.0.20.0070.01217.40
8.0.10.0070.00016.88
8.0.00.0100.01216.61
7.4.330.0000.00515.08
7.4.320.0000.00616.46
7.4.300.0060.00016.34
7.4.290.0060.00616.43
7.4.280.0040.00416.48
7.4.270.0030.00316.45
7.4.260.0070.00016.37
7.4.250.0000.00716.44
7.4.240.0000.00816.38
7.4.230.0070.00016.31
7.4.220.0060.01216.60
7.4.210.0060.00916.38
7.4.200.0030.00316.55
7.4.160.0070.01016.40
7.4.150.0070.01017.40
7.4.140.0080.01317.86
7.4.130.0110.00616.44
7.4.120.0130.00516.38
7.4.110.0080.00816.34
7.4.100.0040.01816.54
7.4.90.0060.01016.29
7.4.80.0120.00619.39
7.4.70.0110.00516.55
7.4.60.0110.00616.45
7.4.50.0130.00316.45
7.4.40.0040.01516.52
7.4.30.0130.00616.35
7.4.00.0080.00615.00
7.3.330.0000.00613.09
7.3.320.0000.00513.02
7.3.310.0040.00416.27
7.3.300.0000.00716.28
7.3.290.0000.00716.12
7.3.280.0080.00916.23
7.3.270.0110.00617.40
7.3.260.0170.00016.29
7.3.250.0110.00616.37
7.3.240.0130.00616.45
7.3.230.0070.01016.39
7.3.210.0120.00516.31
7.3.200.0090.00916.22
7.3.190.0090.00916.38
7.3.180.0100.00616.25
7.3.170.0080.00816.25
7.3.160.0120.00616.58
7.3.00.0190.00616.29
7.2.330.0160.00416.68
7.2.320.0090.01416.51
7.2.310.0140.00416.44
7.2.300.0100.00716.48
7.2.290.0070.01016.36
7.2.130.0070.01116.87
7.2.120.0110.00416.55
7.2.110.0030.00716.97
7.2.100.0130.00316.73
7.2.90.0160.00316.57
7.2.80.0140.00316.70
7.2.70.0070.00716.98
7.2.60.0090.00916.82
7.2.50.0130.00716.72
7.2.40.0040.00816.63
7.2.30.0100.00616.62
7.2.20.0030.00917.00
7.2.10.0170.01016.87
7.2.00.0050.00918.21
7.1.250.0070.00715.60
7.1.240.0140.00415.51
7.1.230.0060.01015.46
7.1.220.0110.00715.75
7.1.210.0180.00015.68
7.1.200.0070.00515.61
7.1.190.0060.00915.71
7.1.180.0130.00015.57
7.1.170.0000.00915.65
7.1.160.0120.00015.77
7.1.150.0110.00415.59
7.1.140.0120.00315.57
7.1.130.0170.00815.86
7.1.120.0120.01015.88
7.1.110.0210.00015.68
7.1.100.0090.00716.79
7.1.90.0170.00715.80
7.1.80.0140.00715.72
7.1.70.0080.01116.33
7.1.60.0090.01417.46
7.1.50.0040.01515.65
7.1.40.0080.00815.55
7.1.30.0070.01015.72
7.1.20.0070.00715.84
7.1.10.0080.00615.82
7.1.00.0070.04319.04
7.0.330.0100.00715.13
7.0.320.0060.00615.11
7.0.310.0090.00615.23
7.0.300.0070.01015.24
7.0.290.0100.00315.07
7.0.280.0030.00515.32
7.0.270.0120.00915.40
7.0.260.0130.00815.40
7.0.250.0140.00615.07
7.0.240.0180.00815.27
7.0.230.0130.01015.28
7.0.220.0170.00615.23
7.0.210.0120.00815.38
7.0.200.0100.00715.15
7.0.190.0150.00315.40
7.0.180.0170.00615.33
7.0.170.0120.00915.48
7.0.160.0070.00715.29
7.0.150.0140.00715.31
7.0.140.0120.00815.10
7.0.130.0130.01015.54
7.0.120.0060.00615.45
7.0.110.0170.00315.45
7.0.100.0050.00815.36
7.0.90.0190.00315.37
7.0.80.0170.00314.95
7.0.70.0200.00015.28
7.0.60.2420.02417.61
7.0.50.0140.03317.81
7.0.40.0180.03016.80
7.0.30.0120.03516.97
7.0.20.0170.02816.94
7.0.10.0120.03916.93
7.0.00.0410.03516.76
5.6.380.0040.01114.41
5.6.370.0060.00314.19
5.6.360.0030.00914.47
5.6.350.0040.00814.31
5.6.340.0060.00614.38
5.6.330.0030.01314.14
5.6.320.0000.01314.50
5.6.310.0070.00713.91
5.6.300.0060.00614.23
5.6.290.0000.01313.98
5.6.280.0020.04017.66
5.6.270.0040.00714.60
5.6.260.0080.00314.47
5.6.250.0060.00614.09
5.6.240.0090.00614.32
5.6.230.0110.00014.27
5.6.220.0000.01114.16
5.6.210.0100.01917.36
5.6.200.0090.04016.28
5.6.190.0130.03217.64
5.6.180.0120.03217.57
5.6.170.0140.03317.78
5.6.160.0260.03117.61
5.6.150.0340.03317.74
5.6.140.0330.02917.75
5.6.130.0330.03317.57
5.6.120.0100.03117.63
5.6.110.0070.03417.54
5.6.100.0280.03717.58
5.6.90.0300.03317.70
5.6.80.0290.03517.33
5.6.70.0220.03517.31
5.6.60.0340.02817.30
5.6.50.0240.03317.41
5.6.40.0250.03317.21
5.6.30.0360.03117.38
5.6.20.0250.03117.33
5.6.10.0220.03217.28
5.6.00.0230.03317.25
5.5.380.0000.00710.95
5.5.370.0080.00311.14
5.5.360.0060.00310.83
5.5.350.2170.02015.58
5.5.340.0050.02614.51
5.5.330.0150.03015.98
5.5.320.0110.04015.89
5.5.310.0130.03015.89
5.5.300.0300.03215.99
5.5.290.0390.02615.95
5.5.280.0050.03315.92
5.5.270.0090.03016.12
5.5.260.0120.03615.74
5.5.250.0220.03315.82
5.5.240.0300.03715.74
5.5.230.0280.03515.61
5.5.220.0330.03415.79
5.5.210.0270.02915.80
5.5.200.0250.03315.37
5.5.190.0330.03615.62
5.5.180.0330.02515.79
5.5.170.0030.00910.65
5.5.160.0250.02815.72
5.5.150.0250.02815.71
5.5.140.0240.03015.46
5.5.130.0280.02815.67
5.5.120.0230.03015.57
5.5.110.0260.02815.81
5.5.100.0280.03115.60
5.5.90.0300.03015.68
5.5.80.0370.02815.74
5.5.70.0290.03515.47
5.5.60.0230.04115.72
5.5.50.0280.02315.67
5.5.40.0250.02615.52
5.5.30.0270.02715.51
5.5.20.0350.02815.50
5.5.10.0220.04015.54
5.5.00.0320.03215.71

preferences:
75.04 ms | 403 KiB | 5 Q