3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait testTrait { public function helloWorld() { echo 'hello world !' . PHP_EOL; } } class Test { use testTrait; } $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.3.70.0110.01118.43
8.3.60.0040.01118.18
8.3.50.0090.01021.13
8.3.40.0070.00718.75
8.3.30.0070.00718.89
8.3.20.0070.00020.39
8.3.10.0040.00421.77
8.3.00.0000.00718.95
8.2.180.0170.00318.29
8.2.170.0040.01122.96
8.2.160.0130.00320.33
8.2.150.0140.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0060.00320.94
8.2.100.0000.01419.45
8.2.90.0040.00417.75
8.2.80.0000.00818.77
8.2.70.0000.00818.04
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.00819.30
8.2.30.0050.00219.32
8.2.20.0070.00017.82
8.2.10.0000.00718.05
8.2.00.0000.00717.66
8.1.280.0120.00325.92
8.1.270.0070.00718.86
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00619.13
8.1.230.0070.00420.83
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00317.53
8.1.190.0000.00817.13
8.1.180.0060.00318.10
8.1.170.0000.00718.51
8.1.160.0040.00418.80
8.1.150.0070.00018.90
8.1.140.0000.00717.32
8.1.130.0030.00317.81
8.1.120.0070.00017.49
8.1.110.0050.00217.48
8.1.100.0050.00317.49
8.1.90.0000.00717.42
8.1.80.0040.00417.48
8.1.70.0030.00317.45
8.1.60.0060.00317.55
8.1.50.0040.00417.52
8.1.40.0000.00817.41
8.1.30.0060.00317.64
8.1.20.0040.00417.54
8.1.10.0050.00217.63
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0030.00317.25
8.0.260.0000.00617.26
8.0.250.0090.00016.93
8.0.240.0040.00416.87
8.0.230.0030.00316.93
8.0.220.0040.00416.79
8.0.210.0000.00716.84
8.0.200.0030.00316.97
8.0.190.0000.00816.96
8.0.180.0000.00716.75
8.0.170.0040.00416.93
8.0.160.0000.00716.91
8.0.150.0070.00016.72
8.0.140.0040.00416.80
8.0.130.0000.00513.21
8.0.120.0000.01016.86
8.0.110.0040.00416.79
8.0.100.0030.00516.81
8.0.90.0000.00816.87
8.0.80.0170.00016.84
8.0.70.0040.00416.96
8.0.60.0040.00416.75
8.0.50.0050.00216.86
8.0.30.0110.01217.17
8.0.20.0130.00617.40
8.0.10.0000.00816.95
8.0.00.0070.01016.85
7.4.330.0000.00415.03
7.4.320.0000.00716.46
7.4.300.0030.00316.55
7.4.290.0040.00416.53
7.4.280.0080.00016.59
7.4.270.0030.00316.52
7.4.260.0070.00016.59
7.4.250.0000.00816.46
7.4.240.0020.00516.58
7.4.230.0070.00016.53
7.4.220.0060.01216.57
7.4.210.0100.01016.47
7.4.200.0070.00016.49
7.4.160.0060.01316.50
7.4.150.0170.00017.40
7.4.140.0100.00817.86
7.4.130.0040.01416.60
7.4.120.0110.00716.54
7.4.110.0070.01116.55
7.4.100.0070.01116.59
7.4.90.0080.01216.45
7.4.80.0110.00719.39
7.4.70.0000.01516.34
7.4.60.0040.01116.59
7.4.50.0040.00416.46
7.4.40.0100.00716.62
7.4.30.0140.00316.46
7.4.00.0030.01214.91
7.3.330.0000.00613.22
7.3.320.0030.00313.24
7.3.310.0040.00416.09
7.3.300.0000.00716.15
7.3.290.0100.00616.26
7.3.280.0070.00816.19
7.3.270.0100.01117.40
7.3.260.0130.00316.51
7.3.250.0100.00716.39
7.3.240.0070.01416.55
7.3.230.0130.00316.47
7.3.210.0070.01616.19
7.3.200.0060.01519.39
7.3.190.0080.00816.30
7.3.180.0140.00416.24
7.3.170.0090.00616.54
7.3.160.0070.00716.23
7.2.330.0130.00716.59
7.2.320.0070.01016.74
7.2.310.0100.00716.71
7.2.300.0210.02416.57
7.2.290.0090.00916.68
7.1.70.0000.00717.10
7.1.60.0070.01819.57
7.1.50.0100.01016.80
7.1.00.0030.07322.25
7.0.200.0080.00816.73
7.0.140.0030.04322.04
7.0.60.0100.06719.81
7.0.50.0000.05317.83
7.0.40.0070.08320.04
7.0.30.0270.04020.24
7.0.20.0230.04020.23
7.0.10.0100.03720.12
7.0.00.0030.05020.17
5.6.280.0000.07720.82
5.6.210.0200.07020.55
5.6.200.0000.05318.25
5.6.190.0070.06320.41
5.6.180.0200.03720.47
5.6.170.0200.04720.47
5.6.160.0030.06720.50
5.6.150.0230.06718.25
5.6.140.0100.05318.27
5.6.130.0030.08318.15
5.6.120.0100.08321.07
5.6.110.0130.07721.01
5.6.100.0100.07720.98
5.6.90.0030.08720.98
5.6.80.0000.04320.28
5.5.350.0130.07320.53
5.5.340.0170.07317.98
5.5.330.0130.08020.27
5.5.320.0030.09320.32
5.5.310.0230.05720.34
5.5.300.0070.08018.01
5.5.290.0070.08317.96
5.5.280.0030.04320.65
5.5.270.0030.04020.83
5.5.260.0100.07320.97
5.5.250.0130.07720.70
5.5.240.0030.07720.29
5.4.450.0070.06019.45
5.4.440.0570.07319.58
5.4.430.0170.05019.51
5.4.420.0100.06019.41
5.4.410.0130.05019.28
5.4.400.0070.05718.93
5.4.390.0170.04719.09
5.4.380.0330.07018.63
5.4.370.0230.05318.84
5.4.360.0270.04318.56
5.4.350.0170.06018.53
5.4.340.0130.05718.63
5.4.320.0300.04318.79
5.4.310.0270.04718.50
5.4.300.0270.04318.47
5.4.290.0230.05018.80
5.4.280.0130.06018.71
5.4.270.0200.05318.50
5.4.260.0170.06018.58
5.4.250.0200.05318.52
5.4.240.0300.04318.74
5.4.230.0270.04718.77
5.4.220.0200.05318.75
5.4.210.0230.06318.80
5.4.200.0200.04716.55
5.4.190.0200.05318.80
5.4.180.0230.06318.74
5.4.170.0230.05318.48
5.4.160.0200.05018.72
5.4.150.0170.05318.44
5.4.140.0200.05016.45
5.4.130.0230.04316.20
5.4.120.0270.05016.29
5.4.110.0200.04716.29
5.4.100.0170.05316.29
5.4.90.0100.06016.45
5.4.80.0170.05016.41
5.4.70.0130.05316.40
5.4.60.0170.05016.17
5.4.50.0230.05316.41
5.4.40.0170.05316.21
5.4.30.0230.04716.18
5.4.20.0170.05316.23
5.4.10.0200.04716.29
5.4.00.0230.06315.79
5.3.290.0170.05714.66
5.3.280.0070.06314.56
5.3.270.0270.05014.66
5.3.260.0200.05314.68
5.3.250.0270.04714.65
5.3.240.0170.05314.66
5.3.230.0070.06314.63
5.3.220.0130.05314.62
5.3.210.0270.04314.56
5.3.200.0070.06014.50
5.3.190.0200.05014.64
5.3.180.0200.05014.56
5.3.170.0270.05014.52
5.3.160.0170.05014.62
5.3.150.0230.04314.54
5.3.140.0230.07014.45
5.3.130.0270.04714.50
5.3.120.0270.05714.53
5.3.110.0100.06314.54
5.3.100.0400.05313.93
5.3.90.0230.04714.05
5.3.80.0170.07313.96
5.3.70.0330.03714.01
5.3.60.0230.06014.08
5.3.50.0200.05013.93
5.3.40.0170.05013.94
5.3.30.0200.04713.84
5.3.20.0300.03713.59
5.3.10.0300.03713.64
5.3.00.0270.04313.73
5.2.170.0230.03311.07
5.2.160.0070.04711.18
5.2.150.0170.04011.18
5.2.140.0130.04311.12
5.2.130.0230.03311.06
5.2.120.0200.03311.08
5.2.110.0130.04311.26
5.2.100.0230.03011.05
5.2.90.0200.03711.14
5.2.80.0200.03711.14
5.2.70.0130.04311.13
5.2.60.0100.04711.07
5.2.50.0100.04710.98
5.2.40.0130.04011.05
5.2.30.0130.04010.89
5.2.20.0170.03710.91
5.2.10.0100.04010.82
5.2.00.0170.03310.77
5.1.60.0200.04010.06
5.1.50.0170.03310.05
5.1.40.0170.0309.98
5.1.30.0170.03710.30
5.1.20.0200.03310.50
5.1.10.0170.03010.13
5.1.00.0130.03710.13
5.0.50.0100.0308.61
5.0.40.0100.0238.38
5.0.30.0070.0478.20
5.0.20.0100.0278.21
5.0.10.0070.0308.37
5.0.00.0030.0478.16
4.4.90.0070.0205.91
4.4.80.0070.0205.85
4.4.70.0130.0175.88
4.4.60.0130.0175.82
4.4.50.0030.0275.93
4.4.40.0070.0375.91
4.4.30.0100.0205.89
4.4.20.0100.0205.94
4.4.10.0000.0305.92
4.4.00.0100.0305.85
4.3.110.0100.0205.84
4.3.100.0130.0235.80
4.3.90.0030.0235.79
4.3.80.0100.0305.86
4.3.70.0130.0135.88
4.3.60.0100.0175.79
4.3.50.0130.0175.81
4.3.40.0070.0335.77
4.3.30.0030.0234.69
4.3.20.0100.0174.69
4.3.10.0070.0204.69
4.3.00.0100.0237.04

preferences:
58.31 ms | 401 KiB | 5 Q