3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C{ public $p; public function &__get($n) { return $this->p; }}$first = new C;$first->p = 'init';$clone = clone $first;$clone->p = $first->magic . '-x';$clone = clone $first;$clone->p = $clone->p . '-x';$clone->p = $clone->p . '-x';$clone->p = $clone->p . '-x';echo $first->v . "\n";

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.0120.00318.54
8.3.50.0110.00922.11
8.3.40.0140.00318.80
8.3.30.0110.00319.09
8.3.20.0070.00020.34
8.3.10.0080.00023.53
8.3.00.0070.00317.63
8.2.180.0030.01318.16
8.2.170.0040.01122.96
8.2.160.0100.00320.57
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00022.11
8.2.110.0100.00020.35
8.2.100.0030.01017.63
8.2.90.0050.00319.17
8.2.80.0090.00017.97
8.2.70.0090.00017.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00419.89
8.2.30.0070.00317.97
8.2.20.0050.00217.71
8.2.10.0030.00517.94
8.2.00.0030.00617.63
8.1.280.0140.00725.92
8.1.270.0060.00322.14
8.1.260.0080.00026.35
8.1.250.0100.00328.09
8.1.240.0000.00920.95
8.1.230.0030.00917.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.34
8.1.180.0080.00018.10
8.1.170.0040.00418.27
8.1.160.0000.00722.03
8.1.150.0040.00418.97
8.1.140.0070.00017.36
8.1.130.0070.00017.71
8.1.120.0000.00717.48
8.1.110.0030.00617.48
8.1.100.0000.00717.45
8.1.90.0070.00017.45
8.1.80.0090.00017.45
8.1.70.0030.00317.36
8.1.60.0030.00617.51
8.1.50.0000.00817.41
8.1.40.0030.00717.49
8.1.30.0040.00417.68
8.1.20.0040.00417.52
8.1.10.0000.00817.56
8.1.00.0030.00617.56
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0040.00417.26
8.0.260.0030.00317.18
8.0.250.0030.00316.88
8.0.240.0030.00316.94
8.0.230.0000.00716.88
8.0.220.0060.00016.89
8.0.210.0070.00016.86
8.0.200.0000.00716.96
8.0.190.0030.00616.94
8.0.180.0000.00816.94
8.0.170.0040.00416.91
8.0.160.0040.00416.85
8.0.150.0050.00316.83
8.0.140.0030.00416.86
8.0.130.0000.00513.34
8.0.120.0000.00816.89
8.0.110.0050.00216.92
8.0.100.0050.00216.96
8.0.90.0000.00716.94
8.0.80.0030.01416.96
8.0.70.0040.00416.68
8.0.60.0070.00016.79
8.0.50.0000.00716.78
8.0.30.0090.01117.01
8.0.20.0080.01117.40
8.0.10.0080.00016.94
8.0.00.0080.01116.64
7.4.330.0020.00215.02
7.4.320.0060.00016.45
7.4.300.0000.00616.61
7.4.290.0000.00716.47
7.4.280.0000.00716.52
7.4.270.0000.00716.60
7.4.260.0000.00816.52
7.4.250.0000.00816.56
7.4.240.0050.00316.53
7.4.230.0070.00016.41
7.4.220.0070.01016.57
7.4.210.0060.00916.68
7.4.200.0040.00416.43
7.4.160.0110.00416.47
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0050.01416.52
7.4.120.0070.00916.51
7.4.110.0040.01416.46
7.4.100.0130.01016.42
7.4.90.0060.01016.32
7.4.80.0100.00719.39
7.4.70.0100.00616.63
7.4.60.0140.00316.71
7.4.50.0030.00316.66
7.4.40.0070.01316.44
7.4.30.0120.00416.45
7.4.00.0090.00614.66
7.3.330.0050.00013.16
7.3.320.0000.00513.12
7.3.310.0000.00716.34
7.3.300.0000.00616.30
7.3.290.0070.00716.32
7.3.280.0020.01416.26
7.3.270.0140.00317.40
7.3.260.0130.00316.46
7.3.250.0130.00516.43
7.3.240.0060.01016.45
7.3.230.0100.01016.39
7.3.210.0060.01216.27
7.3.200.0070.01719.39
7.3.190.0060.01516.48
7.3.180.0130.00516.38
7.3.170.0120.00816.47
7.3.160.0120.00316.32
7.2.330.0040.01316.85
7.2.320.0100.00716.77
7.2.310.0110.00616.68
7.2.300.0100.00716.68
7.2.290.0080.00916.86
7.2.00.0030.00919.49
7.1.200.0090.00315.80
7.1.100.0070.01017.88
7.1.70.0070.00017.20
7.1.60.0130.01319.32
7.1.50.0080.00816.62
7.1.00.0030.07722.45
7.0.200.0040.00416.97
7.0.140.0030.07322.22
7.0.70.4730.04020.02
7.0.60.0000.06020.04
7.0.50.0070.03717.86
7.0.40.0100.05020.25
7.0.30.0230.04020.24
7.0.20.0170.06020.15
7.0.10.0270.07020.07
7.0.00.0000.06020.13
5.6.280.0070.06721.15
5.6.210.0000.07320.66
5.6.200.0100.04718.29
5.6.190.0130.03720.67
5.6.180.0230.07320.46
5.6.170.0300.07720.45
5.6.160.0070.05020.43
5.6.150.0030.04018.15
5.6.140.0130.07718.25
5.6.130.0030.08318.29
5.6.120.0070.06321.03
5.6.110.0070.04020.99
5.6.100.0070.04021.04
5.6.90.0130.08020.93
5.6.80.0100.07320.51
5.6.70.0330.06320.50
5.5.350.0100.08320.30
5.5.340.0000.05017.96
5.5.330.0130.08320.57
5.5.320.0070.08020.44
5.5.310.0370.05020.35
5.5.300.0030.08317.97
5.5.290.0070.08017.97
5.5.280.0070.09020.80
5.5.270.0030.08320.93
5.5.260.0030.04720.73
5.5.250.0100.06020.70
5.5.240.0000.04020.37
5.4.450.0330.05319.31
5.4.440.0370.04319.55
5.4.430.0400.04019.41
5.4.420.0670.00019.38
5.4.410.0670.00019.46
5.4.400.0700.00019.08
5.4.390.0600.00019.02
5.4.380.0670.00019.11
5.4.370.0670.00019.21
5.4.360.0830.00019.13
5.4.350.0670.00019.11
5.4.340.0040.04112.02
5.4.320.0100.03212.50
5.4.310.0030.04212.50
5.4.300.0070.03712.50
5.4.290.0020.04112.49
5.4.280.0050.03612.39
5.4.270.0050.03712.40
5.4.260.0040.03812.40
5.4.250.0060.03712.39
5.4.240.0110.03712.39
5.4.230.0030.04012.39
5.4.220.0070.03612.39
5.4.210.0080.04012.38
5.4.200.0030.04012.39
5.4.190.0070.04312.38
5.4.180.0030.03812.38
5.4.170.0060.03512.39
5.4.160.0050.03612.39
5.4.150.0060.04512.38
5.4.140.0040.03912.07
5.4.130.0050.04112.06
5.4.120.0030.04112.02
5.4.110.0050.03512.01
5.4.100.0050.03812.01
5.4.90.0070.03512.02
5.4.80.0030.03912.02
5.4.70.0100.03012.01
5.4.60.0040.03612.01
5.4.50.0050.03912.01
5.4.40.0040.03712.00
5.4.30.0050.03911.99
5.4.20.0070.03712.00
5.4.10.0100.03112.00
5.4.00.0090.03511.48
5.3.290.0040.04112.80
5.3.280.0050.03912.71
5.3.270.0110.03412.72
5.3.260.0080.03612.71
5.3.250.0070.03512.72
5.3.240.0120.03112.72
5.3.230.0080.03512.71
5.3.220.0050.03712.68
5.3.210.0060.03812.68
5.3.200.0040.03812.68
5.3.190.0060.04312.68
5.3.180.0090.03312.67
5.3.170.0030.04112.67
5.3.160.0060.03612.67
5.3.150.0030.04012.67
5.3.140.0060.03612.66
5.3.130.0070.04212.66
5.3.120.0040.04112.66
5.3.110.0080.03912.66
5.3.100.0090.03412.12
5.3.90.0080.03312.10
5.3.80.0070.03412.09
5.3.70.0080.05012.09
5.3.60.0080.03312.07
5.3.50.0060.03512.03
5.3.40.0070.03712.02
5.3.30.0060.03411.98
5.3.20.0050.03611.76
5.3.10.0080.03211.73
5.3.00.0040.03911.71
5.2.170.0030.0329.22
5.2.160.0060.0309.22
5.2.150.0070.0319.22
5.2.140.0060.0319.22
5.2.130.0050.0289.18
5.2.120.0050.0289.18
5.2.110.0030.0329.18
5.2.100.0060.0289.18
5.2.90.0060.0279.18
5.2.80.0030.0329.18
5.2.70.0090.0309.18
5.2.60.0060.0279.12
5.2.50.0040.0309.09
5.2.40.0030.0309.07
5.2.30.0050.0299.05
5.2.20.0050.0379.03
5.2.10.0030.0368.94
5.2.00.0010.0328.80
5.1.60.0090.0208.09
5.1.50.0070.0228.08
5.1.40.0050.0238.07
5.1.30.0030.0338.42
5.1.20.0040.0278.44
5.1.10.0040.0258.16
5.1.00.0040.0258.16
5.0.50.0020.0216.64
5.0.40.0070.0156.49
5.0.30.0040.0306.31
5.0.20.0040.0186.28
5.0.10.0080.0186.25
5.0.00.0040.0296.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0050.0214.76
4.4.60.0030.0144.75
4.4.50.0030.0154.77
4.4.40.0030.0364.71
4.4.30.0020.0174.76
4.4.20.0060.0234.85
4.4.10.0020.0204.85
4.4.00.0060.0294.76
4.3.110.0030.0184.67
4.3.100.0020.0184.66
4.3.90.0020.0174.63
4.3.80.0030.0244.58
4.3.70.0040.0144.63
4.3.60.0010.0174.63
4.3.50.0030.0174.63
4.3.40.0020.0254.54
4.3.30.0040.0153.30
4.3.20.0030.0173.28
4.3.10.0020.0173.24
4.3.00.0030.01710.42

preferences:
29.63 ms | 401 KiB | 5 Q