3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { return 'tmp'; } } class Bar { function diff() { Foo::bar(); } } $obj = new Bar(); $obj->diff();

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.10.0060.00320.71
8.3.140.0060.01217.10
8.3.130.0090.00316.70
8.3.120.0040.00418.86
8.3.110.0120.00016.46
8.3.100.0040.01518.71
8.3.90.0040.00426.77
8.3.80.0060.00316.63
8.3.70.0040.01516.75
8.3.60.0130.00716.88
8.3.50.0160.00723.57
8.3.40.0100.01022.03
8.3.30.0090.00618.83
8.3.20.0000.00924.18
8.3.10.0050.00324.66
8.3.00.0160.00026.16
8.2.250.0040.00416.69
8.2.240.0030.00617.13
8.2.230.0000.01020.94
8.2.220.0060.00324.06
8.2.210.0120.00626.77
8.2.200.0080.00016.75
8.2.190.0070.00716.88
8.2.180.0070.01625.92
8.2.170.0150.00018.96
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.20
8.2.110.0060.00821.58
8.2.100.0040.00717.91
8.2.90.0120.00618.37
8.2.80.0050.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00418.03
8.2.50.0030.00518.10
8.2.40.0070.00119.23
8.2.30.0070.00019.18
8.2.20.0000.00817.94
8.2.10.0040.00419.05
8.2.00.0030.00319.13
8.1.300.0090.00020.05
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0050.00322.00
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0070.00321.00
8.1.230.0030.00720.98
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0080.00517.23
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0050.00319.00
8.1.150.0040.00418.72
8.1.140.0070.00018.77
8.1.130.0030.00617.32
8.1.120.0000.00717.39
8.1.110.0060.00317.41
8.1.100.0000.00817.34
8.1.90.0040.00417.42
8.1.80.0070.00017.39
8.1.70.0050.00317.38
8.1.60.0000.00817.50
8.1.50.0060.00317.46
8.1.40.0000.01017.39
8.1.30.0120.00017.57
8.1.20.0040.00417.61
8.1.10.0000.00717.58
8.1.00.0000.00917.50
8.0.300.0060.00418.99
8.0.290.0000.01016.63
8.0.280.0080.00018.34
8.0.270.0030.00316.80
8.0.260.0030.00316.68
8.0.250.0040.00416.86
8.0.240.0000.00816.93
8.0.230.0030.00316.96
8.0.220.0030.00316.85
8.0.210.0030.00316.91
8.0.200.0030.00316.83
8.0.190.0030.00316.92
8.0.180.0000.00716.89
8.0.170.0040.00416.84
8.0.160.0030.00316.89
8.0.150.0040.00416.71
8.0.140.0000.00716.86
8.0.130.0040.00213.32
8.0.120.0070.00415.10
8.0.110.0050.00615.03
8.0.100.0050.00715.08
8.0.90.0080.00215.74
8.0.80.0070.00815.98
8.0.70.0090.00415.03
8.0.60.0090.00215.10
8.0.50.0050.00615.03
8.0.30.0090.00515.72
8.0.20.0090.00616.07
8.0.10.0060.00715.22
8.0.00.0080.00916.06
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0000.00616.48
7.4.290.0030.00316.52
7.4.280.0050.00516.47
7.4.270.0040.00416.51
7.4.260.0020.00913.24
7.4.250.0110.00414.85
7.4.240.0100.00314.87
7.4.230.0100.00314.95
7.4.220.0060.00315.77
7.4.210.0070.00815.86
7.4.200.0080.00414.78
7.4.190.0070.00614.98
7.4.180.0110.00315.00
7.4.160.0090.00414.89
7.4.150.0090.00314.97
7.4.140.0070.00514.71
7.4.130.0080.00915.88
7.4.120.0100.00815.65
7.4.110.0060.01115.62
7.4.100.0110.00515.70
7.4.90.0100.00515.75
7.4.80.0110.00615.61
7.4.70.0070.00815.49
7.4.60.0090.00615.54
7.4.50.0090.00715.43
7.4.40.0070.00915.53
7.4.30.0130.00415.45
7.4.20.0090.00715.42
7.4.10.0100.00715.49
7.4.00.0120.00515.56
7.3.330.0000.00613.17
7.3.320.0060.00713.30
7.3.310.0030.00914.72
7.3.300.0100.00314.75
7.3.290.0090.00615.65
7.3.280.0090.00414.66
7.3.270.0110.00314.77
7.3.260.0080.00615.22
7.3.250.0140.00215.33
7.3.240.0090.00715.83
7.3.230.0130.00315.56
7.3.220.0100.00615.49
7.3.210.0110.00715.52
7.3.200.0090.00915.46
7.3.190.0110.00615.44
7.3.180.0090.00915.41
7.3.170.0100.00515.45
7.3.160.0100.00715.40
7.3.150.0140.00416.46
7.3.140.0100.00615.34
7.3.130.0100.00615.54
7.3.120.0060.01015.42
7.3.110.0110.00815.41
7.3.100.0110.00515.42
7.3.90.0110.00615.57
7.3.80.0110.00515.52
7.3.70.0130.00415.50
7.3.60.0100.00615.45
7.3.50.0090.00715.49
7.3.40.0130.00415.44
7.3.30.0100.00715.51
7.3.20.0110.00416.43
7.3.10.0100.00416.41
7.3.00.0080.00616.46
7.2.340.0150.00715.61
7.2.330.0140.01015.56
7.2.320.0160.00715.56
7.2.310.0130.00815.43
7.2.300.0140.00915.64
7.2.290.0140.00815.49
7.2.280.0150.00715.42
7.2.270.0150.00615.55
7.2.260.0160.00615.52
7.2.250.0120.00915.39
7.2.240.0110.00915.53
7.2.230.0110.00815.47
7.2.220.0090.01215.41
7.2.210.0110.00715.39
7.2.200.0110.01115.58
7.2.190.0110.00915.50
7.2.180.0090.00915.56
7.2.170.0110.00915.63
7.2.160.0100.00815.64
7.2.150.0130.00716.54
7.2.140.0140.00716.60
7.2.130.0110.00816.59
7.2.120.0160.00816.57
7.2.110.0130.00716.67
7.2.100.0160.00816.60
7.2.90.0160.00516.62
7.2.80.0160.00616.49
7.2.70.0120.01016.67
7.2.60.0140.00716.49
7.2.50.0150.00716.51
7.2.40.0140.00716.50
7.2.30.0180.00916.55
7.2.20.0210.00316.55
7.2.10.0140.00916.61
7.2.00.0160.00416.54

preferences:
26.95 ms | 403 KiB | 5 Q