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($p1, $p2, $p3) { 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.70.0090.00616.58
8.3.60.0180.00318.68
8.3.50.0120.00716.72
8.3.40.0040.01118.92
8.3.30.0110.00418.70
8.3.20.0050.00320.20
8.3.10.0040.00421.77
8.3.00.0040.00419.51
8.2.180.0090.00625.92
8.2.170.0030.01022.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00419.28
8.2.120.0000.00826.35
8.2.110.0030.00621.10
8.2.100.0080.00418.04
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0100.00017.38
8.2.60.0080.00017.80
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0040.00419.29
8.2.20.0080.00018.02
8.2.10.0040.00418.10
8.2.00.0040.00418.04
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0070.00319.04
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.01017.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0050.00318.64
8.1.160.0080.00018.95
8.1.150.0000.00718.80
8.1.140.0040.00419.49
8.1.130.0080.00018.75
8.1.120.0000.00717.36
8.1.110.0050.00317.38
8.1.100.0000.00717.32
8.1.90.0040.00417.34
8.1.80.0030.00317.32
8.1.70.0030.00317.29
8.1.60.0020.00517.55
8.1.50.0070.00017.45
8.1.40.0000.00817.40
8.1.30.0000.00817.41
8.1.20.0040.00417.46
8.1.10.0050.00317.42
8.1.00.0000.00717.52
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0070.00018.26
8.0.270.0070.00017.06
8.0.260.0070.00016.81
8.0.250.0030.00316.96
8.0.240.0040.00416.99
8.0.230.0000.00816.94
8.0.220.0000.00716.88
8.0.210.0070.00016.86
8.0.200.0030.00316.88
8.0.190.0030.00516.96
8.0.180.0070.00016.94
8.0.170.0040.00416.95
8.0.160.0040.00416.79
8.0.150.0040.00416.68
8.0.140.0000.00716.91
8.0.130.0030.00313.39
8.0.120.0050.00316.75
8.0.110.0040.00416.93
8.0.100.0000.00716.70
8.0.90.0000.00716.95
8.0.80.0040.01216.86
8.0.70.0000.00716.94
8.0.60.0000.00816.75
8.0.50.0040.00416.76
8.0.30.0170.01216.96
8.0.20.0120.00817.40
8.0.10.0040.00416.99
8.0.00.0070.01016.87
7.4.330.0020.00215.55
7.4.320.0030.00316.34
7.4.300.0030.00316.44
7.4.290.0060.00316.41
7.4.280.0060.00616.55
7.4.270.0040.00416.38
7.4.260.0030.00316.28
7.4.250.0030.00616.39
7.4.240.0000.00716.51
7.4.230.0000.00616.34
7.4.220.0160.00316.45
7.4.210.0060.00916.50
7.4.200.0070.00016.60
7.4.160.0080.01016.43
7.4.150.0130.00617.40
7.4.140.0150.00517.86
7.4.130.0100.00716.46
7.4.120.0120.00816.49
7.4.110.0110.01116.54
7.4.100.0120.01216.63
7.4.90.0120.00416.31
7.4.80.0030.01319.39
7.4.70.0060.00916.34
7.4.60.0060.01016.51
7.4.50.0090.00316.65
7.4.40.0040.01416.39
7.4.30.0090.00616.46
7.4.10.0070.01115.20
7.4.00.0070.00814.97
7.3.330.0000.00613.10
7.3.320.0030.00313.35
7.3.310.0030.00316.37
7.3.300.0030.00316.23
7.3.290.0100.00816.34
7.3.280.0070.00916.38
7.3.270.0140.00417.40
7.3.260.0130.00716.52
7.3.250.0100.01016.34
7.3.240.0080.00916.33
7.3.230.0100.01016.37
7.3.210.0000.01616.61
7.3.200.0060.01216.52
7.3.190.0130.00916.46
7.3.180.0060.00916.64
7.3.170.0090.00916.34
7.3.160.0110.00616.50
7.3.130.0090.00214.88
7.3.120.0070.01315.04
7.3.110.0090.00914.88
7.3.100.0000.01214.65
7.3.90.0000.01714.77
7.3.80.0030.00915.02
7.3.70.0070.00714.91
7.3.60.0030.00714.67
7.3.50.0070.00414.76
7.3.40.0070.00714.40
7.3.30.0050.00514.70
7.3.20.0030.00716.71
7.3.10.0060.00316.69
7.3.00.0060.00316.43
7.2.330.0120.00616.54
7.2.320.0160.00316.59
7.2.310.0060.00916.21
7.2.300.0060.01316.47
7.2.290.0000.01716.39
7.2.260.0080.01114.70
7.2.250.0030.01314.91
7.2.240.0120.00314.79
7.2.230.0070.01114.56
7.2.220.0040.01514.69
7.2.210.0030.01014.95
7.2.200.0000.01614.76
7.2.190.0040.00714.64
7.2.180.0060.00614.79
7.2.170.0030.00714.96
7.2.160.0040.01114.95
7.2.150.0120.00316.82
7.2.140.0040.01116.85
7.2.130.0080.00416.59
7.2.120.0110.00416.83
7.2.110.0060.00616.65
7.2.100.0030.00616.70
7.2.90.0060.00316.54
7.2.80.0070.00716.68
7.2.70.0060.00616.60
7.2.60.0090.00516.71
7.2.50.0070.00716.83
7.2.40.0030.01316.86
7.2.30.0090.00616.90
7.2.20.0030.00916.73
7.2.10.0040.01216.41
7.2.00.0050.00618.04
7.1.330.0070.01015.56
7.1.320.0040.00415.77
7.1.310.0090.00315.78
7.1.300.0040.00415.60
7.1.290.0060.00315.70
7.1.280.0030.01015.65
7.1.270.0030.00615.66
7.1.260.0040.00415.60
7.1.250.0060.00915.54
7.1.240.0070.00415.29
7.1.230.0030.00715.74
7.1.220.0040.00815.71
7.1.210.0120.00315.57
7.1.200.0060.00415.63
7.1.190.0120.00315.47
7.1.180.0100.00615.70
7.1.170.0000.01115.51
7.1.160.0000.01715.60
7.1.150.0030.00615.73
7.1.140.0000.01615.61
7.1.130.0040.01115.45
7.1.120.0080.00815.39
7.1.110.0060.00615.80
7.1.100.0060.00616.55
7.1.90.0030.01415.83
7.1.80.0000.01415.52
7.1.70.0050.00616.28
7.1.60.0130.00725.27
7.1.50.0110.00725.04
7.1.40.0110.00924.74
7.1.30.0150.00624.98
7.1.20.0130.00825.20
7.1.10.0030.00815.84
7.1.00.0050.01016.07
7.0.330.0000.01315.44
7.0.320.0030.00515.38
7.0.310.0060.00915.25
7.0.300.0100.00315.48
7.0.290.0110.00315.38
7.0.280.0060.00315.37
7.0.270.0060.00915.41
7.0.260.0000.00915.36
7.0.250.0030.00615.33
7.0.240.0070.01115.13
7.0.230.0030.01515.49
7.0.220.0060.00615.48
7.0.210.0060.00315.22
7.0.200.0060.00416.06
7.0.190.0060.00715.91
7.0.180.0050.00615.90
7.0.170.0040.00715.67
7.0.160.0000.01215.89
7.0.150.0010.01015.68
7.0.140.0050.00715.82
7.0.130.0120.00215.89
7.0.120.0100.00516.17
7.0.110.0020.01015.71
7.0.100.0070.00516.04
7.0.90.0040.01015.86
7.0.80.0070.00915.70
7.0.70.0050.00815.81
7.0.60.0050.00715.85
7.0.50.0050.00815.80
7.0.40.0060.01014.87
7.0.30.0060.00815.00
7.0.20.0090.00714.69
7.0.10.0030.01014.77
7.0.00.0010.01314.92
5.6.400.0070.00714.24
5.6.390.0090.00614.17
5.6.380.0040.01114.20
5.6.370.0030.00614.36
5.6.360.0060.00914.41
5.6.350.0090.00914.36
5.6.340.0040.00814.17
5.6.330.0060.00614.66
5.6.320.0070.00714.46
5.6.310.0030.00614.58
5.6.300.0060.00614.42
5.6.290.0060.00914.49
5.6.280.0090.00614.59
5.6.270.0080.00314.41
5.6.260.0080.00414.50
5.6.250.0040.01114.20
5.6.240.0040.01414.23
5.6.230.0090.00614.49
5.6.220.0000.01114.32
5.6.210.0000.01114.40
5.6.200.0040.00814.41
5.6.190.0080.00814.64
5.6.180.0090.00414.15
5.6.170.0030.00514.07
5.6.160.0030.01014.45
5.6.150.0040.01414.46
5.6.140.0070.01014.32
5.6.130.0070.00714.34
5.6.120.0000.01314.25
5.6.110.0100.00314.28
5.6.100.0030.00614.46
5.6.90.0080.00414.39
5.6.80.0080.00414.22
5.6.70.0100.00314.00
5.6.60.0030.01014.27
5.6.50.0070.00714.43
5.6.40.0060.00814.25
5.6.30.0000.01314.68
5.6.20.0040.01114.31
5.6.10.0000.00914.48
5.6.00.0060.00314.02

preferences:
55.8 ms | 401 KiB | 5 Q