3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ExampleTrait { final function execute() { } } class Example { use ExampleTrait; // Should raise an \E_FATAL with the following message: // "Cannot override final method Example::execute() in [...] on line 26" function execute() { } } class Child extends Example { function execute() {} }

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.0110.01116.38
8.3.50.0140.00018.25
8.3.40.0070.00720.96
8.3.30.0040.01118.53
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00827.44
8.2.180.0110.00425.92
8.2.170.0120.00318.64
8.2.160.0040.01222.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00727.44
8.2.120.0100.00624.98
8.2.110.0120.00425.65
8.2.100.0070.01124.58
8.2.90.0060.00925.13
8.2.80.0080.00624.71
8.2.70.0070.00824.56
8.2.60.0090.00524.61
8.2.50.0070.00524.75
8.2.40.0070.00325.33
8.2.30.0090.00324.68
8.2.20.0050.00324.68
8.2.10.0080.00525.08
8.2.00.0050.00625.16
8.1.280.0180.00325.92
8.1.270.0000.01423.99
8.1.260.0040.00727.51
8.1.250.0080.00328.09
8.1.240.0100.00226.09
8.1.230.0090.00524.54
8.1.220.0060.00524.64
8.1.210.0030.00624.98
8.1.200.0040.00424.47
8.1.190.0050.00324.46
8.1.180.0070.00124.76
8.1.170.0070.00324.89
8.1.160.0060.00424.95
8.1.150.0060.00524.93
8.1.140.0050.00324.49
8.1.130.0050.00524.97
8.1.120.0060.00424.50
8.1.110.0060.00324.47
8.1.100.0060.00224.53
8.1.90.0050.00421.62
8.1.80.0100.00321.64
8.1.70.0100.00221.60
8.1.60.0070.00721.73
8.1.50.0080.00421.69
8.1.40.0080.00521.70
8.1.30.0080.00421.74
8.1.20.0080.00421.75
8.1.10.0090.00321.63
8.1.00.0090.00421.61
8.0.300.0050.00324.98
8.0.290.0060.00224.27
8.0.280.0030.00624.83
8.0.270.0000.00824.65
8.0.260.0060.00224.93
8.0.250.0040.00524.32
8.0.240.0070.00124.35
8.0.230.0050.00224.32
8.0.220.0070.00421.30
8.0.210.0090.00121.24
8.0.200.0070.00421.35
8.0.190.0090.00121.32
8.0.180.0070.00421.33
8.0.170.0090.00321.30
8.0.160.0080.00321.28
8.0.150.0060.00521.29
8.0.140.0080.00321.26
8.0.130.0100.00120.55
8.0.120.0060.00521.25
8.0.110.0050.00521.27
8.0.100.0060.00321.30
8.0.90.0070.00421.27
8.0.80.0080.00321.29
8.0.70.0060.00521.29
8.0.60.0060.00421.25
8.0.50.0080.00321.27
8.0.30.0070.00421.30
8.0.20.0080.00221.35
8.0.10.0080.00321.35
8.0.00.0070.00321.39
7.4.330.0050.00323.91
7.4.320.0110.00324.25
7.4.300.0140.00521.11
7.4.290.0140.00721.07
7.4.280.0180.00421.09
7.4.270.0160.00621.12
7.4.260.0160.00420.43
7.4.250.0120.00521.08
7.4.240.0100.00521.09
7.4.230.0080.00721.13
7.4.220.0160.00321.10
7.4.210.0170.00221.10
7.4.200.0170.00421.13
7.4.190.0120.00721.10
7.4.180.0150.00521.06
7.4.160.0150.00621.17
7.4.150.0170.00321.11
7.4.140.0120.00720.98
7.4.130.0190.00321.00
7.4.120.0170.00420.98
7.4.110.0140.00721.04
7.4.100.0180.00221.12
7.4.90.0110.00721.01
7.4.80.0130.00421.00
7.4.70.0090.00521.00
7.4.60.0080.00520.96
7.4.50.0120.00520.95
7.4.40.0130.00321.03
7.4.30.0100.00521.00
7.4.20.0100.00420.96
7.4.10.0090.00421.00
7.4.00.0100.00321.01
7.3.330.0110.00620.91
7.3.320.0120.00520.31
7.3.310.0140.00621.01
7.3.300.0080.00720.98
7.3.290.0090.00420.96
7.3.280.0150.00120.98
7.3.270.0120.00620.99
7.3.260.0110.00320.94
7.3.250.0090.00720.95
7.3.240.0100.00620.96
7.3.230.0150.00420.92
7.3.220.0180.00420.93
7.3.210.0180.00420.94
7.3.200.0140.00720.92
7.3.190.0170.00320.94
7.3.180.0130.00620.94
7.3.170.0140.00720.89
7.3.160.0150.00520.91
7.3.150.0170.00520.88
7.3.140.0170.00320.87
7.3.130.0170.00320.92
7.3.120.0130.00720.92
7.3.110.0170.00620.84
7.3.100.0160.00520.88
7.3.90.0110.00521.03
7.3.80.0110.00320.91
7.3.70.0100.00520.98
7.3.60.0150.00421.02
7.3.50.0120.00721.01
7.3.40.0110.00621.02
7.3.30.0150.00221.05
7.3.20.0130.00421.80
7.3.10.0100.00621.70
7.3.00.0140.00621.70

preferences:
48.19 ms | 400 KiB | 5 Q