3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface someInterface { public function wibble(); } trait someTrait { public function wibble() { echo 'wibble'; } } class someClass implements someInterface { use someTrait { wibble as private; } } $someObject = new someClass(); $someObject->wibble();

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.01418.26
8.3.50.0150.00721.09
8.3.40.0110.00418.85
8.3.30.0110.00418.48
8.3.20.0040.00420.33
8.3.10.0080.00021.73
8.3.00.0000.00817.68
8.2.180.0160.00617.93
8.2.170.0140.00422.96
8.2.160.0110.00320.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00317.50
8.2.110.0030.00722.11
8.2.100.0080.00319.77
8.2.90.0030.00619.03
8.2.80.0000.00817.97
8.2.70.0030.00517.35
8.2.60.0080.00017.80
8.2.50.0100.00018.07
8.2.40.0040.00419.48
8.2.30.0080.00320.37
8.2.20.0040.00417.73
8.2.10.0040.00418.04
8.2.00.0000.00718.05
8.1.280.0120.00325.92
8.1.270.0070.01323.96
8.1.260.0000.01026.35
8.1.250.0050.00328.09
8.1.240.0000.00922.53
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0040.00418.63
8.1.160.0020.00521.97
8.1.150.0000.00718.82
8.1.140.0040.00417.43
8.1.130.0000.00817.64
8.1.120.0000.00717.41
8.1.110.0040.00417.36
8.1.100.0090.00017.28
8.1.90.0070.00017.33
8.1.80.0040.00417.29
8.1.70.0030.00317.40
8.1.60.0000.00717.52
8.1.50.0000.00817.50
8.1.40.0050.00217.45
8.1.30.0030.00617.58
8.1.20.0020.00517.48
8.1.10.0040.00417.38
8.1.00.0050.00217.25
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0040.00418.41
8.0.270.0040.00416.88
8.0.260.0030.00317.26
8.0.250.0040.00416.96
8.0.240.0040.00416.93
8.0.230.0100.00017.05
8.0.220.0000.00816.73
8.0.210.0080.00016.80
8.0.200.0030.00316.93
8.0.190.0050.00216.96
8.0.180.0040.00416.89
8.0.170.0040.00416.93
8.0.160.0070.00016.79
8.0.150.0050.00216.75
8.0.140.0000.00816.81
8.0.130.0060.00013.38
8.0.120.0000.00816.89
8.0.110.0050.00316.88
8.0.100.0000.00816.69
8.0.90.0040.00416.75
8.0.80.0110.00716.78
8.0.70.0040.00416.71
8.0.60.0050.00316.76
8.0.50.0050.00216.79
8.0.30.0110.00617.08
8.0.20.0090.01117.40
8.0.10.0040.00416.90
8.0.00.0080.01216.70
7.4.330.0050.00015.08
7.4.320.0040.00416.46
7.4.300.0000.00616.43
7.4.290.0030.00316.55
7.4.280.0080.00016.50
7.4.270.0000.00616.43
7.4.260.0000.00816.43
7.4.250.0000.00716.48
7.4.240.0000.00716.57
7.4.230.0050.00216.54
7.4.220.0070.01016.49
7.4.210.0070.01016.64
7.4.200.0070.00016.55
7.4.160.0060.01816.52
7.4.150.0140.00317.40
7.4.140.0160.00517.86
7.4.130.0080.00816.44
7.4.120.0090.00816.36
7.4.110.0000.01816.55
7.4.100.0200.00316.25
7.4.90.0170.00716.36
7.4.80.0090.01219.39
7.4.70.0130.00516.49
7.4.60.0060.01116.31
7.4.50.0080.00016.59
7.4.40.0070.01116.19
7.4.30.0070.01416.50
7.4.00.0070.01115.17
7.3.330.0020.00213.24
7.3.320.0050.00013.24
7.3.310.0030.00316.25
7.3.300.0000.00716.19
7.3.290.0080.00716.20
7.3.280.0070.00916.20
7.3.270.0130.00417.40
7.3.260.0080.00916.34
7.3.250.0090.00816.46
7.3.240.0160.00816.23
7.3.230.0110.01116.39
7.3.210.0030.01316.23
7.3.200.0110.00516.32
7.3.190.0080.00816.34
7.3.180.0130.00316.14
7.3.170.0080.00816.29
7.3.160.0130.00316.32
7.3.10.0050.00616.43
7.3.00.0030.01016.30
7.2.330.0080.00916.57
7.2.320.0110.00816.63
7.2.310.0030.01416.62
7.2.300.0100.00716.36
7.2.290.0090.01216.60
7.2.130.0050.00716.59
7.2.120.0050.00716.55
7.2.110.0100.00416.57
7.2.100.0050.00716.59
7.2.90.0070.00316.65
7.2.80.0050.00816.76
7.2.70.0060.00516.71
7.2.60.0090.00716.89
7.2.50.0090.00516.44
7.2.40.0000.01216.81
7.2.30.0080.00716.73
7.2.20.0040.00716.75
7.2.10.0060.00616.54
7.2.00.0010.00917.63
7.1.250.0040.01015.55
7.1.200.0030.00715.45
7.1.100.0030.01017.85
7.1.70.0000.01017.19
7.1.60.0100.01319.19
7.1.50.0110.01416.54
7.1.00.0070.07322.57
7.0.200.0060.00316.70
7.0.60.0070.08021.84
7.0.50.0100.07017.86
7.0.40.0100.04020.13
7.0.30.0230.05020.10
7.0.20.0300.03720.26
7.0.10.0130.04320.20
7.0.00.0070.08320.25
5.6.280.0030.07321.02
5.6.210.0170.07020.47
5.6.200.0000.04318.14
5.6.190.0070.05720.69
5.6.180.0130.04320.61
5.6.170.0300.03720.47
5.6.160.0070.06320.55
5.6.150.0100.07718.15
5.6.140.0100.07718.28
5.6.130.0070.03718.14
5.6.120.0030.04321.01
5.6.110.0170.07321.00
5.6.100.0030.08021.04
5.6.90.0100.08320.88
5.6.80.0100.07320.44
5.5.350.0030.08020.45
5.5.340.0170.07017.96
5.5.330.0070.08720.43
5.5.320.3070.04320.25
5.5.310.0170.03720.41
5.5.300.0100.03317.95
5.5.290.0070.07717.97
5.5.280.0100.08320.96
5.5.270.0030.08720.95
5.5.260.0100.08320.80
5.5.250.0070.03720.58
5.5.240.0030.03020.07
5.4.450.1030.04719.61
5.4.440.1030.04719.69
5.4.430.0800.05719.62
5.4.420.1070.04719.19
5.4.410.0970.05319.07
5.4.400.1030.06019.23
5.4.390.1030.05019.15
5.4.380.0930.05719.05
5.4.370.1000.06019.11
5.4.360.0830.04718.87
5.4.350.0830.04719.25
5.4.340.0770.06019.26
5.4.320.1000.04319.30
5.4.310.0830.04319.02
5.4.300.1000.06319.15
5.4.290.0870.06319.01
5.4.280.1100.06319.25
5.4.270.0970.05319.14
5.4.260.1030.06318.84
5.4.250.1030.06019.12
5.4.240.0970.05718.86
5.4.230.0830.05719.27
5.4.220.0770.06318.98
5.4.210.0830.06019.30
5.4.200.1000.05019.27
5.4.190.0930.05019.04
5.4.180.0900.05018.97
5.4.170.0800.07318.86
5.4.160.1030.05318.99
5.4.150.1000.06319.20
5.4.140.1070.05016.60
5.4.130.1000.04016.57
5.4.120.1000.04716.38
5.4.110.0770.04716.33
5.4.100.1070.04316.67
5.4.90.1000.04716.67
5.4.80.1000.04016.64
5.4.70.0170.04016.29
5.4.60.0170.04316.23
5.4.50.0030.08016.55
5.4.40.0170.03716.53
5.4.30.0270.04316.38
5.4.20.0170.03716.34

preferences:
53.91 ms | 401 KiB | 5 Q