3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait t { public function f() { return __CLASS__; } } class c { use t; } $c = new c(); echo $c->f();

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.01218.56
8.3.50.0110.01021.24
8.3.40.0040.01118.75
8.3.30.0060.00918.54
8.3.20.0080.00020.13
8.3.10.0000.00823.58
8.3.00.0090.00023.43
8.2.180.0150.00316.50
8.2.170.0120.00622.96
8.2.160.0100.00322.23
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00820.64
8.2.110.0060.00320.93
8.2.100.0090.00317.50
8.2.90.0050.00219.21
8.2.80.0000.00917.97
8.2.70.0030.00517.50
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0040.00421.32
8.2.30.0000.00719.88
8.2.20.0080.00017.68
8.2.10.0030.00518.05
8.2.00.0040.00418.04
8.1.280.0030.01225.92
8.1.270.0040.00420.21
8.1.260.0080.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.82
8.1.230.0000.01117.42
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.24
8.1.180.0000.00718.10
8.1.170.0030.00518.50
8.1.160.0000.00722.02
8.1.150.0000.00718.99
8.1.140.0040.00417.38
8.1.130.0030.00317.70
8.1.120.0070.00017.34
8.1.110.0000.00817.39
8.1.100.0040.00417.44
8.1.90.0040.00417.46
8.1.80.0000.00717.41
8.1.70.0000.00717.48
8.1.60.0000.00817.59
8.1.50.0040.00717.47
8.1.40.0060.00317.43
8.1.30.0000.00817.59
8.1.20.0050.00217.52
8.1.10.0000.00717.54
8.1.00.0000.00717.54
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.35
8.0.270.0000.00717.25
8.0.260.0060.00017.36
8.0.250.0040.00416.89
8.0.240.0050.00216.98
8.0.230.0000.00716.98
8.0.220.0030.00316.83
8.0.210.0000.00716.87
8.0.200.0000.00616.82
8.0.190.0090.00016.83
8.0.180.0020.00516.80
8.0.170.0040.00716.87
8.0.160.0030.00316.94
8.0.150.0000.00816.80
8.0.140.0040.00316.83
8.0.130.0000.01213.23
8.0.120.0040.00416.84
8.0.110.0000.00716.73
8.0.100.0000.00716.79
8.0.90.0040.00416.73
8.0.80.0140.00716.89
8.0.70.0000.00716.96
8.0.60.0050.00316.73
8.0.50.0000.00716.76
8.0.30.0100.01117.17
8.0.20.0020.01817.40
8.0.10.0070.00016.85
8.0.00.0060.01216.63
7.4.330.0050.00015.08
7.4.320.0000.00616.45
7.4.300.0060.00016.50
7.4.290.0020.00516.59
7.4.280.0040.00416.55
7.4.270.0030.00316.51
7.4.260.0020.00516.48
7.4.250.0040.00416.46
7.4.240.0000.00716.51
7.4.230.0040.00416.43
7.4.220.0080.01116.70
7.4.210.0050.00916.61
7.4.200.0040.00416.63
7.4.160.0090.00616.32
7.4.150.0130.00717.40
7.4.140.0080.01617.86
7.4.130.0080.00916.54
7.4.120.0080.01016.60
7.4.110.0070.01016.43
7.4.100.0130.00616.63
7.4.90.0090.01216.34
7.4.80.0110.00819.39
7.4.70.0060.01216.39
7.4.60.0070.01416.34
7.4.50.0030.00316.26
7.4.40.0120.01216.42
7.4.30.0090.01316.21
7.4.00.0090.00614.93
7.3.330.0030.00313.23
7.3.320.0000.00713.20
7.3.310.0030.00416.21
7.3.300.0040.00416.23
7.3.290.0100.00716.21
7.3.280.0070.01316.20
7.3.270.0070.01017.40
7.3.260.0140.00316.29
7.3.250.0090.01016.36
7.3.240.0060.01316.28
7.3.230.0080.01616.39
7.3.210.0090.00916.36
7.3.200.0060.01016.23
7.3.190.0060.01016.26
7.3.180.0130.00916.35
7.3.170.0120.00916.39
7.3.160.0110.01216.46
7.3.10.0110.00016.12
7.3.00.0130.00316.15
7.2.330.0070.01016.75
7.2.320.0160.01016.73
7.2.310.0070.01016.32
7.2.300.0060.00916.44
7.2.290.0120.00616.69
7.2.130.0080.00316.37
7.2.120.0000.01416.52
7.2.110.0060.00316.60
7.2.100.0030.00916.95
7.2.90.0000.01016.86
7.2.80.0090.00316.69
7.2.70.0050.00516.51
7.2.60.0050.00616.53
7.2.50.0040.01216.38
7.2.40.0110.00316.69
7.2.30.0060.00916.43
7.2.20.0090.00616.84
7.2.10.0000.00916.64
7.2.00.0130.00317.88
7.1.250.0030.00915.52
7.1.200.0030.01115.74
7.1.100.0040.01118.14
7.1.70.0000.00717.15
7.1.60.0100.00719.18
7.1.50.0070.01316.65
7.1.00.0070.07022.30
7.0.200.0150.00016.51
7.0.60.0070.08019.91
7.0.50.0030.08717.86
7.0.40.0070.04720.04
7.0.30.0370.07020.17
7.0.20.0300.07020.20
7.0.10.0130.08320.07
7.0.00.0100.05020.16
5.6.280.0030.07320.79
5.6.210.0100.05720.52
5.6.200.0100.04018.18
5.6.190.0070.04320.63
5.6.180.0430.04020.46
5.6.170.0100.04720.57
5.6.160.0070.04720.54
5.6.150.0030.08718.12
5.6.140.0030.04318.12
5.6.130.0000.06318.14
5.6.120.0030.08320.99
5.6.110.0130.07321.11
5.6.100.0030.09321.01
5.6.90.0070.08721.04
5.6.80.0100.06720.40
5.5.350.0230.07720.54
5.5.340.0130.07017.98
5.5.330.0100.08020.25
5.5.320.0400.07320.25
5.5.310.0270.07720.27
5.5.300.0030.05017.96
5.5.290.0030.05718.04
5.5.280.0030.04720.96
5.5.270.0030.05720.96
5.5.260.0070.07720.96
5.5.250.0130.07320.62
5.5.240.0030.08020.04
5.4.450.0200.05719.42
5.4.440.0200.04719.40
5.4.430.0270.07319.40
5.4.420.0200.04319.57
5.4.410.0230.03719.26
5.4.400.0300.06319.00
5.4.390.0230.07018.99
5.4.380.0130.04019.16
5.4.370.0170.03719.22
5.4.360.0130.09018.99
5.4.350.0200.07318.89
5.4.340.0270.05318.85
5.4.320.0200.06319.16
5.4.310.0270.04318.88
5.4.300.0270.06318.87
5.4.290.0130.05719.09
5.4.280.0200.07719.22
5.4.270.0300.06019.06
5.4.260.0200.06319.08
5.4.250.0170.06319.09
5.4.240.0300.06319.08
5.4.230.0230.06719.19
5.4.220.0170.03718.94
5.4.210.0130.07719.05
5.4.200.0200.05718.84
5.4.190.0130.06719.20
5.4.180.0200.07318.86
5.4.170.0200.05719.12
5.4.160.0230.06018.83
5.4.150.0070.04718.92
5.4.140.0170.04316.34
5.4.130.0170.04716.37
5.4.120.0200.05716.28
5.4.110.0200.03316.37
5.4.100.0130.04016.32
5.4.90.0100.05716.43
5.4.80.0200.05316.50
5.4.70.0130.05316.54
5.4.60.0130.03716.16
5.4.50.0130.05316.25
5.4.40.0270.05316.55
5.4.30.0230.05716.39
5.4.20.0230.05016.23
5.4.10.0200.04316.52
5.4.00.0230.03715.94
5.3.290.0170.07714.62
5.3.280.0200.03314.45
5.3.270.0330.06314.48
5.3.260.0270.05714.45
5.3.250.0170.03714.51
5.3.240.0170.05014.64
5.3.230.0300.06714.44
5.3.220.0230.06714.51
5.3.210.0200.03714.45
5.3.200.0230.05314.66
5.3.190.0200.07014.52
5.3.180.0200.06714.61
5.3.170.0230.06014.51
5.3.160.0230.05014.55
5.3.150.0130.05014.51
5.3.140.0170.04714.40
5.3.130.0230.06714.42
5.3.120.0200.04714.50
5.3.110.0230.05314.48
5.3.100.0270.07314.09
5.3.90.0200.05313.89
5.3.80.0200.03313.89
5.3.70.0270.06313.84
5.3.60.0200.07013.77
5.3.50.0230.07313.89
5.3.40.0270.06013.89
5.3.30.0170.07013.95
5.3.20.0270.03713.60
5.3.10.0230.06313.51
5.3.00.0270.05013.43
5.2.170.0200.03012.16
5.2.160.0200.06012.16
5.2.150.0130.04012.16
5.2.140.0170.03712.16
5.2.130.0130.05012.16
5.2.120.0230.02712.16
5.2.110.0170.03712.16
5.2.100.0200.04712.16
5.2.90.0200.04712.16
5.2.80.0130.06012.16
5.2.70.0170.03712.16
5.2.60.0200.05712.16
5.2.50.0170.04012.16
5.2.40.0230.05012.16
5.2.30.0130.04012.16
5.2.20.0170.05712.16
5.2.10.0200.05312.16
5.2.00.0130.05012.16
5.1.60.0100.03012.16
5.1.50.0170.04312.16
5.1.40.0170.05012.16
5.1.30.0100.06012.16
5.1.20.0200.05312.16
5.1.10.0100.05712.16
5.1.00.0100.06012.16
5.0.50.0070.03012.16
5.0.40.0070.02712.16
5.0.30.0100.06312.16
5.0.20.0130.03312.16
5.0.10.0170.03012.16
5.0.00.0100.06012.16
4.4.90.0030.02312.16
4.4.80.0100.02312.16
4.4.70.0100.03312.16
4.4.60.0030.02712.16
4.4.50.0130.03312.16
4.4.40.0130.03712.16
4.4.30.0000.02312.16
4.4.20.0170.02312.16
4.4.10.0070.03312.16
4.4.00.0100.02312.16
4.3.110.0170.03012.16
4.3.100.0070.03712.16
4.3.90.0170.02712.16
4.3.80.0100.05312.16
4.3.70.0070.02012.16
4.3.60.0100.01712.16
4.3.50.0070.03312.16
4.3.40.0100.05012.16
4.3.30.0030.03712.16
4.3.20.0030.04012.16
4.3.10.0030.03012.16
4.3.00.0070.02712.16

preferences:
51.47 ms | 401 KiB | 5 Q