3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'baz'; } class FooInterceptor extends Foo { private $wrapped; public function __construct(Foo $wrapped) { $this->wrapped = $wrapped; unset($this->bar); } public function __get(string $name) { var_dump('reading ' . $name); return $this->wrapped->$name; } } $foo = new FooInterceptor(new Foo); var_dump($foo->bar);

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.120.0090.01120.46
8.4.110.0090.01122.51
8.4.100.0050.00518.00
8.4.90.0150.00618.73
8.4.80.0100.00624.17
8.4.70.0110.00819.39
8.4.60.0090.00918.85
8.4.50.0100.00925.78
8.4.40.0130.00619.37
8.4.30.0160.00417.59
8.4.20.0120.00917.50
8.4.10.0120.00619.54
8.3.250.0100.00718.84
8.3.240.0110.00816.69
8.3.230.0120.00616.45
8.3.220.0090.00817.13
8.3.210.0100.00918.34
8.3.200.0060.00316.49
8.3.190.0100.00916.91
8.3.180.0110.00516.80
8.3.170.0120.00617.11
8.3.160.0120.00616.61
8.3.150.0040.00416.49
8.3.140.0070.01016.68
8.3.130.0100.00616.66
8.3.120.0060.00318.93
8.3.110.0160.00320.94
8.3.100.0090.00024.06
8.3.90.0120.00326.77
8.3.80.0030.00616.50
8.3.70.0090.00616.75
8.3.60.0090.01316.63
8.3.50.0080.01021.20
8.3.40.0060.00918.71
8.3.30.0080.00618.80
8.3.20.0030.00621.02
8.3.10.0040.00421.60
8.3.00.0040.00419.25
8.2.290.0130.00520.47
8.2.280.0070.01118.32
8.2.270.0100.01017.41
8.2.260.0120.00617.20
8.2.250.0000.00818.39
8.2.240.0090.00017.31
8.2.230.0030.00522.58
8.2.220.0030.00737.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0170.00316.58
8.2.180.0060.01125.92
8.2.170.0070.00722.96
8.2.160.0140.00720.77
8.2.150.0000.00924.18
8.2.140.0090.00024.66
8.2.130.0040.00419.83
8.2.120.0080.00026.35
8.2.110.0040.00721.00
8.2.100.0040.00717.59
8.2.90.0060.00317.63
8.2.80.0100.00017.97
8.2.70.0080.00018.04
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0040.00420.25
8.2.30.0040.00419.24
8.2.20.0000.00718.04
8.2.10.0040.00418.10
8.2.00.0040.00417.68
8.1.330.0140.00423.73
8.1.320.0130.00815.86
8.1.310.0070.01116.73
8.1.300.0120.00316.27
8.1.290.0040.00418.88
8.1.280.0110.00325.92
8.1.270.0000.00722.03
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00522.80
8.1.230.0110.00018.82
8.1.220.0100.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00517.10
8.1.180.0080.00018.10
8.1.170.0000.00920.69
8.1.160.0040.00418.83
8.1.150.0000.00720.27
8.1.140.0040.00419.50
8.1.130.0070.00019.05
8.1.120.0050.00217.45
8.1.110.0000.00817.48
8.1.100.0070.00017.48
8.1.90.0000.00717.40
8.1.80.0070.00017.39
8.1.70.0030.00317.48
8.1.60.0000.00717.63
8.1.50.0040.00417.54
8.1.40.0040.00417.54
8.1.30.0040.00417.64
8.1.20.0020.00517.70
8.1.10.0060.00317.52
8.1.00.0030.00517.56
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0050.00217.25
8.0.260.0080.00017.14
8.0.250.0000.00617.01
8.0.240.0000.00617.04
8.0.230.0030.00317.04
8.0.220.0030.00316.93
8.0.210.0070.00016.95
8.0.200.0060.00016.93
8.0.190.0040.00417.07
8.0.180.0030.00516.86
8.0.170.0040.00417.03
8.0.160.0040.00417.02
8.0.150.0000.00716.86
8.0.140.0040.00416.81
8.0.130.0000.00713.39
8.0.120.0000.00816.83
8.0.110.0000.00716.92
8.0.100.0000.00716.81
8.0.90.0080.00016.98
8.0.80.0060.00916.87
8.0.70.0000.00816.92
8.0.60.0000.00817.00
8.0.50.0000.00816.79
8.0.30.0110.00817.08
8.0.20.0100.00917.40
8.0.10.0000.00717.15
8.0.00.0000.02316.63
7.4.330.0050.00015.55
7.4.320.0000.00716.46
7.4.300.0000.00616.61
7.4.290.0070.00016.57
7.4.280.0000.00816.51
7.4.270.0030.00316.42
7.4.260.0030.00316.63
7.4.250.0000.00716.46
7.4.240.0000.00716.57
7.4.230.0030.00316.47
7.4.220.0030.01316.55
7.4.210.0030.01216.50
7.4.200.0000.00716.56
7.4.160.0110.00616.65
7.4.150.0150.00917.40
7.4.140.0080.01017.86
7.4.130.0110.00916.51
7.4.120.0100.01016.55
7.4.110.0100.00716.55
7.4.100.0090.00916.55
7.4.90.0070.01116.43
7.4.80.0120.00419.39
7.4.70.0120.00616.52
7.4.60.0070.00716.60
7.4.50.0080.00516.57
7.4.40.0090.00916.41
7.4.30.0110.00516.47
7.4.00.0040.01214.92
7.3.330.0050.00013.26
7.3.320.0000.00513.28
7.3.310.0030.00616.30
7.3.300.0070.00016.16
7.3.290.0000.00716.16
7.3.280.0110.00816.31
7.3.270.0120.00617.40
7.3.260.0100.01116.43
7.3.250.0070.01116.43
7.3.240.0130.00316.49
7.3.230.0140.00316.55
7.3.210.0100.00716.46
7.3.200.0120.01219.39
7.3.190.0120.00916.35
7.3.180.0130.00316.42
7.3.170.0060.00916.34
7.3.160.0000.01716.39
7.3.120.0080.01014.91
7.3.110.0060.01114.97
7.3.100.0050.01114.67
7.3.90.0000.01314.91
7.3.80.0120.00114.79
7.3.70.0020.01014.79
7.3.60.0050.00614.87
7.3.50.0050.00714.76
7.3.40.0040.00914.87
7.3.30.0050.01014.51
7.3.20.0080.00416.59
7.3.10.0040.01016.61
7.3.00.0060.00816.36
7.2.330.0070.01016.44
7.2.320.0210.00416.67
7.2.310.0090.01516.70
7.2.300.0080.01116.67
7.2.290.0160.00016.74
7.2.250.0100.01015.17
7.2.240.0070.01014.96
7.2.230.0050.01014.97
7.2.220.0060.00814.99
7.2.210.0070.00814.86
7.2.200.0050.01014.87
7.2.190.0100.00715.06
7.2.180.0060.00815.13
7.2.170.0060.00914.99
7.2.130.0090.00916.38
7.2.120.0120.00616.68
7.2.110.0090.00916.44
7.2.100.0030.01016.79
7.2.90.0030.00716.70
7.2.80.0180.00616.44
7.2.70.0060.00916.42
7.2.60.0190.00216.81
7.2.50.0100.00616.68
7.2.40.0040.00716.58
7.2.30.0060.00916.44
7.2.20.0040.01216.73
7.2.10.0040.01816.72
7.2.00.0180.00316.77
7.1.330.0060.00815.81
7.1.320.0080.00515.67
7.1.310.0080.00215.78
7.1.300.0060.00815.78
7.1.290.0000.01615.75
7.1.280.0060.00715.75
7.1.270.0020.01215.70
7.1.260.0040.00915.71
7.1.250.0040.00915.56
7.1.200.0090.00615.66
7.1.70.0030.00316.93
7.1.60.0090.00917.35
7.1.50.0070.01516.99
7.1.00.0600.05720.64
7.0.200.0030.01316.74
7.0.140.1130.06320.29
7.0.130.0670.06320.29
7.0.120.0370.07020.14
7.0.110.0530.06320.32
7.0.100.0530.08020.26
7.0.90.0670.06720.43
7.0.80.0570.05020.20
7.0.70.0500.07020.35
7.0.60.0630.05020.14
7.0.50.0530.05720.22
7.0.40.0530.05320.32
7.0.30.0730.06720.36
7.0.20.0600.05720.20
7.0.10.0400.08320.27
7.0.00.0500.05320.33
5.6.290.0070.07020.84
5.6.280.0170.05021.09
5.6.270.0100.05721.05
5.6.260.0100.05721.09
5.6.250.0170.05020.89
5.6.240.0070.06020.79
5.6.230.0130.06020.98
5.6.220.0000.08320.91
5.6.210.0000.07020.95
5.6.200.0170.05320.89
5.6.190.0130.05320.82
5.6.180.0100.05320.89
5.6.170.0130.05020.90
5.6.160.0130.08020.82
5.6.150.0100.06020.87
5.6.140.0170.05320.89
5.6.130.0170.06021.04
5.6.120.0130.07321.07
5.6.110.0170.05720.82
5.6.100.0030.06320.98
5.6.90.0070.05721.02
5.6.80.0100.05720.44
5.6.70.0170.04720.40
5.6.60.0070.05720.44
5.6.50.0000.06020.42
5.6.40.0070.05720.35
5.6.30.0030.06020.39
5.6.20.0200.05320.18
5.6.10.0100.07720.42
5.6.00.0130.06720.16

preferences:
28.47 ms | 403 KiB | 5 Q