3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ExampleTrait { protected $developer; } class Work { protected $developer; use ExampleTrait; public function __construct() { $this->developer = 'Aaron'; echo $this->developer; } } $work = new Work();

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.0060.00916.25
8.3.50.0080.01222.12
8.3.40.0110.00318.70
8.3.30.0110.00418.80
8.3.20.0080.00020.46
8.3.10.0040.00423.56
8.3.00.0030.00719.63
8.2.180.0120.00318.41
8.2.170.0100.00722.96
8.2.160.0030.01020.40
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00317.50
8.2.110.0060.00320.27
8.2.100.0000.01217.50
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00419.46
8.2.30.0040.00417.96
8.2.20.0060.00317.68
8.2.10.0040.00418.09
8.2.00.0000.00717.96
8.1.280.0110.00425.92
8.1.270.0040.00420.38
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.89
8.1.230.0060.00617.42
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0030.00322.00
8.1.150.0040.00418.79
8.1.140.0000.00817.32
8.1.130.0040.00417.68
8.1.120.0000.00717.47
8.1.110.0070.00017.32
8.1.100.0040.00417.34
8.1.90.0040.00417.47
8.1.80.0000.00717.34
8.1.70.0030.00317.43
8.1.60.0050.00317.57
8.1.50.0000.00717.41
8.1.40.0030.00617.55
8.1.30.0000.00817.63
8.1.20.0050.00217.54
8.1.10.0000.00817.48
8.1.00.0050.00217.35
8.0.300.0060.00318.77
8.0.290.0050.00216.75
8.0.280.0050.00318.31
8.0.270.0030.00317.21
8.0.260.0000.00617.11
8.0.250.0070.00016.98
8.0.240.0030.00617.00
8.0.230.0100.00016.88
8.0.220.0000.00716.91
8.0.210.0070.00016.75
8.0.200.0000.00616.94
8.0.190.0000.00716.90
8.0.180.0040.00416.92
8.0.170.0030.00516.96
8.0.160.0040.00416.89
8.0.150.0030.00316.77
8.0.140.0040.00416.73
8.0.130.0050.00013.35
8.0.120.0000.00816.90
8.0.110.0000.00816.72
8.0.100.0000.00716.81
8.0.90.0030.00316.66
8.0.80.0070.01416.87
8.0.70.0040.00416.92
8.0.60.0040.00416.80
8.0.50.0000.00716.75
8.0.30.0150.00217.35
8.0.20.0070.01217.40
8.0.10.0000.00717.03
8.0.00.0100.01116.71
7.4.330.0040.00315.08
7.4.320.0000.00616.47
7.4.300.0030.00616.51
7.4.290.0070.00016.46
7.4.280.0040.00416.48
7.4.270.0000.00716.52
7.4.260.0030.00316.54
7.4.250.0040.00416.31
7.4.240.0000.00716.57
7.4.230.0070.00016.39
7.4.220.0150.00916.66
7.4.210.0060.01316.55
7.4.200.0040.00416.24
7.4.160.0060.00916.38
7.4.150.0040.01517.40
7.4.140.0130.00517.86
7.4.130.0090.00916.63
7.4.120.0070.01016.52
7.4.110.0130.01016.50
7.4.100.0120.00916.27
7.4.90.0040.01416.44
7.4.80.0160.00819.39
7.4.70.0120.00616.55
7.4.60.0090.00616.50
7.4.50.0000.00716.32
7.4.40.0130.00516.60
7.4.30.0130.00916.64
7.4.00.0100.00315.14
7.3.330.0000.00513.31
7.3.320.0030.00313.26
7.3.310.0030.00316.41
7.3.300.0000.00716.31
7.3.290.0060.00916.28
7.3.280.0090.01116.31
7.3.270.0090.00917.40
7.3.260.0090.00916.36
7.3.250.0080.01016.26
7.3.240.0070.01016.51
7.3.230.0120.00616.39
7.3.210.0100.00716.22
7.3.200.0000.01716.39
7.3.190.0100.00616.61
7.3.180.0100.00716.36
7.3.170.0060.01116.27
7.3.160.0060.01016.36
7.2.330.0180.00616.80
7.2.320.0100.01316.78
7.2.310.0000.01916.46
7.2.300.0030.01316.89
7.2.290.0120.01116.79
7.2.60.0060.00616.65
7.2.00.0070.01019.17
7.1.200.0040.01215.61
7.1.100.0030.00917.91
7.1.70.0040.00417.25
7.1.60.0120.01219.13
7.1.50.0090.01216.98
7.1.00.0030.07722.36
7.0.200.0150.00816.35
7.0.60.0230.06719.95
7.0.50.0000.04017.97
7.0.40.0070.04320.27
7.0.30.0270.04020.30
7.0.20.0330.06720.30
7.0.10.0100.08320.09
7.0.00.0100.05720.07
5.6.280.0000.03321.02
5.6.210.0170.07020.65
5.6.200.0000.05318.19
5.6.190.0070.07320.52
5.6.180.0400.04320.42
5.6.170.0370.05020.55
5.6.160.0070.03720.46
5.6.150.0070.08318.17
5.6.140.0000.04718.14
5.6.130.0030.07718.17
5.6.120.0070.04021.12
5.6.110.0170.07721.11
5.6.100.0100.08021.02
5.6.90.0070.06021.00
5.6.80.0100.06720.52
5.5.350.0300.07720.48
5.5.340.0030.09017.99
5.5.330.0030.04320.47
5.5.320.0400.07720.27
5.5.310.0170.05720.27
5.5.300.0130.07717.95
5.5.290.0100.07718.03
5.5.280.0100.03720.86
5.5.270.0100.08320.75
5.5.260.0130.05720.76
5.5.250.0070.05020.61
5.5.240.0000.08020.37
5.4.450.0830.05319.55
5.4.440.0800.05319.38
5.4.430.0630.05319.37
5.4.420.0870.04319.37
5.4.410.0770.05319.02
5.4.400.0600.05719.22
5.4.390.0600.06018.84
5.4.380.0700.05318.84
5.4.370.0830.07319.08
5.4.360.0770.07019.25
5.4.350.0670.05019.23
5.4.340.0730.05019.09
5.4.320.0700.07019.05
5.4.310.0730.04319.13
5.4.300.0630.05719.02
5.4.290.0830.05019.24
5.4.280.0830.05019.13
5.4.270.0730.05719.06
5.4.260.0770.06018.82
5.4.250.0870.05318.82
5.4.240.0730.04019.04
5.4.230.0570.06019.05
5.4.220.0670.06018.82
5.4.210.0700.04718.92
5.4.200.0900.04319.33
5.4.190.0770.04019.23
5.4.180.0670.05319.04
5.4.170.0900.04719.06
5.4.160.0770.05719.05
5.4.150.0830.05719.04
5.4.140.0730.04316.47
5.4.130.0700.04316.36
5.4.120.0570.05316.30
5.4.110.0570.06316.52
5.4.100.0700.04716.62
5.4.90.0670.04316.41
5.4.80.0900.04316.41
5.4.70.0300.06316.45
5.4.60.0300.06016.55
5.4.50.0070.03316.43
5.4.40.0200.06316.51
5.4.30.0100.07016.34
5.4.20.0170.07716.49
5.4.10.0370.05016.16

preferences:
47.69 ms | 401 KiB | 5 Q