3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; function __construct() { $this->b = new B; } function __call($method, $args) { $this->b->$method(...$args); } } class B { function work() { echo 'working'; } } (new B)->work(); (new A)->work(); (new A)->not();

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.0070.01116.75
8.3.50.0110.00416.17
8.3.40.0100.00719.02
8.3.30.0040.01118.79
8.3.20.0080.00020.27
8.3.10.0030.00521.89
8.3.00.0000.00819.38
8.2.180.0090.01218.67
8.2.170.0090.00922.96
8.2.160.0060.00920.10
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00821.05
8.2.120.0030.00626.35
8.2.110.0050.00521.04
8.2.100.0110.00018.16
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0070.00517.38
8.2.60.0000.00817.80
8.2.50.0030.00518.10
8.2.40.0080.00020.59
8.2.30.0040.00420.98
8.2.20.0000.00717.90
8.2.10.0050.00218.00
8.2.00.0030.00517.86
8.1.280.0130.00625.92
8.1.270.0070.00023.85
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00923.88
8.1.230.0090.00319.11
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00817.23
8.1.190.0080.00017.22
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00718.93
8.1.150.0030.00518.69
8.1.140.0070.00019.52
8.1.130.0030.00318.72
8.1.120.0040.00317.36
8.1.110.0030.00517.36
8.1.100.0040.00417.41
8.1.90.0000.00817.36
8.1.80.0000.00717.39
8.1.70.0040.00417.28
8.1.60.0040.00417.55
8.1.50.0000.00817.54
8.1.40.0000.00817.59
8.1.30.0040.00417.64
8.1.20.0050.00217.65
8.1.10.0040.00417.54
8.1.00.0040.00417.55
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0040.00418.31
8.0.270.0000.00717.24
8.0.260.0030.00316.77
8.0.250.0030.00316.94
8.0.240.0040.00417.00
8.0.230.0000.00716.88
8.0.220.0040.00416.78
8.0.210.0000.00716.88
8.0.200.0060.00016.90
8.0.190.0050.00316.93
8.0.180.0000.00816.84
8.0.170.0000.00716.87
8.0.160.0000.00716.77
8.0.150.0000.00716.78
8.0.140.0040.00416.84
8.0.130.0000.00613.25
8.0.120.0040.00416.84
8.0.110.0040.00417.00
8.0.100.0000.00717.00
8.0.90.0040.00416.95
8.0.80.0100.01016.84
8.0.70.0040.00416.95
8.0.60.0040.00416.85
8.0.50.0040.00416.67
8.0.30.0080.01116.92
8.0.20.0110.01117.40
8.0.10.0070.00016.84
8.0.00.0140.00316.96
7.4.330.0030.00315.55
7.4.320.0020.00516.53
7.4.300.0040.00416.60
7.4.290.0030.00716.45
7.4.280.0040.00716.59
7.4.270.0040.00416.63
7.4.260.0000.00716.63
7.4.250.0060.00316.55
7.4.240.0000.00716.65
7.4.230.0000.00816.68
7.4.220.0030.01416.55
7.4.210.0050.01216.56
7.4.200.0030.00316.61
7.4.160.0110.00616.54
7.4.150.0150.00417.40
7.4.140.0090.01017.86
7.4.130.0030.01516.56
7.4.120.0140.00816.65
7.4.110.0190.00316.40
7.4.100.0120.01216.52
7.4.90.0100.00716.68
7.4.80.0100.00719.39
7.4.70.0070.00816.46
7.4.60.0060.00916.47
7.4.50.0070.00716.39
7.4.40.0140.00716.48
7.4.30.0100.01016.33
7.4.00.0070.00715.04
7.3.330.0030.00313.21
7.3.320.0000.00613.23
7.3.310.0040.00416.33
7.3.300.0040.00416.41
7.3.290.0000.00716.38
7.3.280.0080.00916.37
7.3.270.0100.00717.40
7.3.260.0130.00316.44
7.3.250.0100.00916.48
7.3.240.0100.00716.50
7.3.230.0260.03816.39
7.3.210.0090.00916.61
7.3.200.0150.00616.48
7.3.190.0190.00316.39
7.3.180.0090.00616.37
7.3.170.0150.00616.41
7.3.160.0080.00816.40
7.3.10.0030.00616.50
7.3.00.0030.01416.79
7.2.330.0090.00916.73
7.2.320.0000.01616.72
7.2.310.0090.00616.64
7.2.300.0030.01316.73
7.2.290.0110.00516.65
7.2.130.0000.01716.85
7.2.120.0000.01216.97
7.2.110.0000.01116.91
7.2.100.0030.01317.02
7.2.90.0100.00717.04
7.2.80.0110.00017.05
7.2.70.0030.00916.96
7.2.60.0150.00516.85
7.2.50.0040.00816.98
7.2.40.0060.00316.99
7.2.30.0060.00617.02
7.2.20.0060.00616.78
7.2.10.0040.00717.06
7.2.00.0060.00316.81
7.1.250.0060.00615.58
7.1.200.0040.00815.67
7.1.100.0110.00817.60
7.1.70.0080.00416.79
7.1.60.0180.00934.81
7.1.50.0170.01034.66
7.1.40.0140.01434.45
7.1.30.0170.01234.30
7.1.20.0200.00734.52
7.1.10.0060.00616.37
7.1.00.0040.00816.50
7.0.200.0120.00016.88
7.0.190.0040.00816.65
7.0.180.0040.00916.20
7.0.170.0000.01216.31
7.0.160.0000.01216.15
7.0.150.0090.00416.09
7.0.140.0030.01016.18
7.0.130.0080.00416.59
7.0.120.0060.00616.65
7.0.110.0060.00616.21
7.0.100.0040.00816.46
7.0.90.0080.00416.37
7.0.80.0030.01016.34
7.0.70.0060.00616.20
7.0.60.0080.01016.02
7.0.50.0030.01116.41
7.0.40.0100.00316.53
7.0.30.0040.00816.54
7.0.20.0000.01316.36
7.0.10.0030.01016.16
7.0.00.0060.00616.34

preferences:
49.57 ms | 400 KiB | 5 Q