3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait testTrait { final public function helloWorld() { echo 'hello world !' . PHP_EOL; } } class Test { use testTrait; public function helloWorld() { echo 'boom' . PHP_EOL; } } $test = new Test(); $test->helloWorld();

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.5.10.0050.00320.09
8.5.00.0140.00820.02
8.4.160.0120.00823.76
8.4.150.0030.00014.05
8.4.140.0070.00517.70
8.4.130.0130.00917.84
8.4.120.0130.00720.52
8.4.110.0140.00522.65
8.4.100.0150.00217.73
8.4.90.0140.00622.46
8.4.80.0050.00517.98
8.4.70.0070.00417.70
8.4.60.0060.01018.55
8.4.50.0090.00217.73
8.4.40.0100.01017.78
8.4.30.0060.00917.67
8.4.20.0160.00317.65
8.4.10.0060.00317.66
8.3.280.0190.00518.31
8.3.270.0150.00416.53
8.3.260.0130.00616.35
8.3.250.0150.00318.87
8.3.240.0070.01216.75
8.3.230.0130.00616.56
8.3.220.0090.01017.26
8.3.210.0070.00816.60
8.3.200.0060.00316.63
8.3.190.0100.01218.78
8.3.180.0060.00316.84
8.3.170.0120.00616.43
8.3.160.0100.00316.60
8.3.150.0160.00317.06
8.3.140.0090.00916.55
8.3.130.0040.00418.11
8.3.120.0040.00820.88
8.3.110.0060.00320.94
8.3.100.0080.00024.06
8.3.90.0090.00926.77
8.3.80.0030.00617.97
8.3.70.0110.00418.30
8.3.60.0170.00318.18
8.3.50.0080.01022.04
8.3.40.0040.01418.67
8.3.30.0120.00318.95
8.3.20.0040.00420.07
8.3.10.0000.00721.89
8.3.00.0000.00819.08
8.2.290.0110.01020.29
8.2.280.0060.00318.20
8.2.270.0110.00716.44
8.2.260.0030.00620.45
8.2.250.0030.01316.55
8.2.240.0060.00318.73
8.2.230.0090.00622.58
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0060.00316.38
8.2.190.0060.01316.58
8.2.180.0040.01116.63
8.2.170.0120.00322.96
8.2.160.0030.01020.11
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.13
8.2.110.0000.00922.25
8.2.100.0060.00619.45
8.2.90.0080.00017.75
8.2.80.0040.00418.77
8.2.70.0040.00417.93
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0000.00719.21
8.2.30.0000.00819.49
8.2.20.0000.00817.67
8.2.10.0080.00018.04
8.2.00.0020.00517.73
8.1.330.0130.00618.08
8.1.320.0080.01116.31
8.1.310.0070.00716.63
8.1.300.0150.00418.45
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0080.00018.86
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00620.20
8.1.230.0000.01117.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00918.46
8.1.160.0040.00418.76
8.1.150.0040.00418.93
8.1.140.0040.00417.36
8.1.130.0070.00017.86
8.1.120.0000.00717.35
8.1.110.0050.00317.46
8.1.100.0000.00717.46
8.1.90.0050.00317.35
8.1.80.0000.00817.36
8.1.70.0030.00317.36
8.1.60.0080.00017.58
8.1.50.0030.00517.53
8.1.40.0040.00417.50
8.1.30.0000.00917.47
8.1.20.0000.00817.66
8.1.10.0030.00617.60
8.1.00.0000.00817.55
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00818.45
8.0.270.0040.00417.25
8.0.260.0030.00317.17
8.0.250.0060.00316.83
8.0.240.0000.00616.98
8.0.230.0000.00716.93
8.0.220.0030.00316.92
8.0.210.0000.00716.79
8.0.200.0030.00316.84
8.0.190.0000.00716.98
8.0.180.0040.00416.81
8.0.170.0030.00616.90
8.0.160.0000.00816.91
8.0.150.0040.00316.72
8.0.140.0050.00316.81
8.0.130.0030.00313.25
8.0.120.0050.00216.88
8.0.110.0040.00416.91
8.0.100.0040.00416.89
8.0.90.0000.00816.77
8.0.80.0070.01416.96
8.0.70.0000.00716.78
8.0.60.0000.00716.93
8.0.50.0040.00416.99
8.0.30.0100.00917.20
8.0.20.0130.00517.40
8.0.10.0000.00816.91
8.0.00.0160.00316.71
7.4.330.0050.00015.09
7.4.320.0030.00316.49
7.4.300.0060.00016.59
7.4.290.0000.00716.40
7.4.280.0030.00516.61
7.4.270.0000.00616.50
7.4.260.0000.00816.49
7.4.250.0040.00416.39
7.4.240.0040.00416.53
7.4.230.0030.00316.40
7.4.220.0090.01216.62
7.4.210.0070.00716.71
7.4.200.0000.00716.51
7.4.160.0130.00316.48
7.4.150.0080.00917.40
7.4.140.0130.00917.86
7.4.130.0100.00916.54
7.4.120.0110.00616.45
7.4.110.0080.01216.42
7.4.100.0100.00716.36
7.4.90.0060.01216.59
7.4.80.0070.01119.39
7.4.70.0120.00416.36
7.4.60.0100.00716.43
7.4.50.0000.00916.50
7.4.40.0140.01116.41
7.4.30.0030.01416.51
7.4.00.0030.01315.10
7.3.330.0020.00213.23
7.3.320.0000.00613.19
7.3.310.0060.00316.34
7.3.300.0000.00716.09
7.3.290.0030.01116.22
7.3.280.0080.00716.21
7.3.270.0030.01317.40
7.3.260.0110.00616.32
7.3.250.0110.00716.42
7.3.240.0070.01016.26
7.3.230.0130.00316.46
7.3.210.0070.01116.38
7.3.200.0070.01419.39
7.3.190.0130.00316.38
7.3.180.0100.00616.21
7.3.170.0080.01216.29
7.3.160.0040.01216.16
7.2.330.0030.01316.79
7.2.320.0100.01316.69
7.2.310.0150.00616.70
7.2.300.0190.02016.80
7.2.290.0060.01216.73
7.2.60.0030.00716.67
7.2.00.0060.00619.52
7.1.200.0030.00315.63
7.1.100.0870.00315.96
7.1.70.0050.00217.11
7.1.60.0110.00719.57
7.1.50.0030.01016.57
7.1.00.0130.06722.40
7.0.200.0000.01016.68
7.0.140.0000.07322.00
7.0.100.0100.03719.99
7.0.90.0100.07719.86
7.0.80.0130.07319.90
7.0.70.0130.05319.85
7.0.60.0170.07020.05
7.0.50.0030.05720.25
7.0.40.0100.06319.95
7.0.30.0130.07320.13
7.0.20.0100.08319.99
7.0.10.0130.06020.07
7.0.00.0100.08020.08
5.6.280.0030.07320.86
5.6.250.0030.04320.77
5.6.240.0070.08720.59
5.6.230.0100.07720.54
5.6.220.0030.05320.56
5.6.210.0130.06720.49
5.6.200.0130.07721.12
5.6.190.0100.08021.08
5.6.180.0130.07321.12
5.6.170.0030.08321.04
5.6.160.0100.08320.96
5.6.150.0030.08321.06
5.6.140.0130.08021.02
5.6.130.0170.08021.04
5.6.120.0230.04321.13
5.6.110.0100.04321.04
5.6.100.0100.05020.95
5.6.90.0030.08321.04
5.6.80.0100.07320.50
5.6.70.0030.04720.39
5.6.60.0100.04320.33
5.6.50.0100.07720.34
5.6.40.0030.08320.43
5.6.30.0070.06720.47
5.6.20.0030.08320.37
5.6.10.0100.06720.35
5.6.00.0100.07320.51
5.5.380.0170.07020.41
5.5.370.0100.04020.39
5.5.360.0130.04720.53
5.5.350.0130.07720.43
5.5.340.0030.08720.73
5.5.330.0100.08020.64
5.5.320.0100.07320.88
5.5.310.0070.08320.92
5.5.300.0000.08320.92
5.5.290.0100.08020.83
5.5.280.0230.07020.85
5.5.270.0030.08720.91
5.5.260.0030.07020.86
5.5.250.0030.08320.68
5.5.240.0100.07320.18
5.5.230.0170.06720.02
5.5.220.0070.07720.21
5.5.210.0070.08020.14
5.5.200.0030.06020.21
5.5.190.0000.09020.13
5.5.180.0070.07320.22
5.5.160.0200.06720.21
5.5.150.0130.07020.20
5.5.140.0100.08020.18
5.5.130.0100.07320.13
5.5.120.0070.06320.15
5.5.110.0000.06720.14
5.5.100.0100.07720.16
5.5.90.0130.07320.11
5.5.80.0030.08720.13
5.5.70.0070.05719.95
5.5.60.0070.07720.06
5.5.50.0070.06720.09
5.5.40.0070.07720.02
5.5.30.0130.06320.04
5.5.20.0170.06320.02
5.5.10.0070.08320.09
5.5.00.0070.08020.13
5.4.450.0030.08719.23
5.4.440.0100.07719.55
5.4.430.0030.08019.36
5.4.420.0070.07319.48
5.4.410.0230.07019.37
5.4.400.0130.07718.85
5.4.390.0030.05319.02
5.4.380.0070.08018.90
5.4.370.0130.06719.05
5.4.360.0100.07018.95
5.4.350.0130.07319.23
5.4.340.0130.07319.03
5.4.320.0100.07019.18
5.4.310.0100.07319.23
5.4.300.0070.08018.85
5.4.290.0130.06719.03
5.4.280.0100.07319.16
5.4.270.0170.06719.18
5.4.260.0130.07019.16
5.4.250.0070.07319.12
5.4.240.0070.06018.90
5.4.230.0070.08019.13
5.4.220.0070.05719.02
5.4.210.0070.05019.11
5.4.200.0130.07019.13
5.4.190.0100.04019.07
5.4.180.0000.07718.86
5.4.170.0100.07319.07
5.4.160.0100.07319.02
5.4.150.0070.08019.04
5.4.140.0100.05316.33
5.4.130.0070.07716.42
5.4.120.0070.07016.33
5.4.110.0100.06316.32
5.4.100.0070.07716.34
5.4.90.0070.07316.34
5.4.80.0070.04316.42
5.4.70.0100.06716.32
5.4.60.0030.06716.41
5.4.50.0100.08016.45
5.4.40.0070.06716.37
5.4.30.0030.07716.29
5.4.20.0170.06016.48
5.4.10.0170.05716.53
5.4.00.0000.04015.81
5.3.290.0030.07314.63
5.3.280.0100.07314.57
5.3.270.0070.08014.52
5.3.260.0130.07014.57
5.3.250.0270.06714.60
5.3.240.0030.07714.57
5.3.230.0130.05314.42
5.3.220.0030.03714.51
5.3.210.0100.05314.53
5.3.200.0030.07314.57
5.3.190.0100.06714.53
5.3.180.0130.06314.47
5.3.170.0070.07714.50
5.3.160.0030.04314.50
5.3.150.0100.07714.42
5.3.140.0030.08314.53
5.3.130.0070.07714.48
5.3.120.0000.08314.50
5.3.110.0030.07314.54
5.3.100.0030.07313.88
5.3.90.0030.03714.00
5.3.80.0030.04313.92
5.3.70.0000.04314.01
5.3.60.0030.06013.93
5.3.50.0030.03713.93
5.3.40.0070.03313.80
5.3.30.0030.03313.77
5.3.20.0000.03713.69
5.3.10.0030.03313.43
5.3.00.0000.04013.50
5.2.170.0030.03311.55
5.2.160.0000.03011.55
5.2.150.0070.03011.55
5.2.140.0000.03011.55
5.2.130.0070.02311.55
5.2.120.0030.03011.55
5.2.110.0000.02711.55
5.2.100.0030.03711.55
5.2.90.0000.03011.55
5.2.80.0030.03711.55
5.2.70.0030.02711.55
5.2.60.0000.03311.55
5.2.50.0000.04711.55
5.2.40.0030.04011.55
5.2.30.0000.04011.55
5.2.20.0000.03011.55
5.2.10.0000.03011.55
5.2.00.0100.03711.55
5.1.60.0070.01711.55
5.1.50.0030.02711.55
5.1.40.0070.02011.55
5.1.30.0070.02011.55
5.1.20.0030.02711.55
5.1.10.0030.02311.55
5.1.00.0000.02711.55
5.0.50.0100.01011.55
5.0.40.0000.02011.55
5.0.30.0000.03011.55
5.0.20.0100.01011.55
5.0.10.0000.01711.55
5.0.00.0000.03011.55
4.4.90.0000.01311.55
4.4.80.0030.02011.55
4.4.70.0100.03011.55
4.4.60.0030.02311.55
4.4.50.0000.02011.55
4.4.40.0000.02711.55
4.4.30.0000.01311.55
4.4.20.0030.02711.55
4.4.10.0000.01711.55
4.4.00.0030.02311.55
4.3.110.0000.02011.55
4.3.100.0030.01311.55
4.3.90.0000.01311.55
4.3.80.0000.02711.55
4.3.70.0030.01011.55
4.3.60.0000.02011.55
4.3.50.0000.01711.55
4.3.40.0000.03011.55
4.3.30.0030.01311.55
4.3.20.0000.01711.55
4.3.10.0000.02311.55
4.3.00.0070.01011.55

preferences:
167.51 ms | 403 KiB | 5 Q