3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait DataCollector { static function setData( $data ) { static $CollectionData = array(); $CollectionData[] = $data; var_dump( $CollectionData ); } private static function getCollectedData() { return $CollectionData; } } trait dataHandler { use DataCollector { getCollectedData as public; } } class Form { use DataCollector {} } class Field extends Form { public function __construct( $type, $text = NULL ) { self::setData( $type ); } } $Field1 = new Field( 'text' ); $Field2 = new Field( 'html' ); var_dump( 'Collected Data', dataHandler::getCollectedData() );

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.0150.00318.65
8.3.50.0120.00922.12
8.3.40.0090.00618.82
8.3.30.0120.00319.09
8.3.20.0070.00019.94
8.3.10.0040.00423.61
8.3.00.0050.00322.34
8.2.180.0130.00918.54
8.2.170.0090.00619.08
8.2.160.0110.01122.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00919.36
8.2.110.0050.00522.13
8.2.100.0070.00717.72
8.2.90.0040.00419.27
8.2.80.0060.00318.04
8.2.70.0030.00517.75
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0050.00318.10
8.2.30.0040.00418.06
8.2.20.0070.00017.68
8.2.10.0060.00317.87
8.2.00.0040.00417.82
8.1.280.0140.00025.92
8.1.270.0030.00623.91
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0080.00419.21
8.1.220.0030.00617.78
8.1.210.0080.00018.77
8.1.200.0090.00017.25
8.1.190.0080.00017.18
8.1.180.0060.00318.10
8.1.170.0040.00418.51
8.1.160.0040.00422.07
8.1.150.0000.00718.70
8.1.140.0040.00417.45
8.1.130.0030.00317.83
8.1.120.0070.00017.37
8.1.110.0040.00417.48
8.1.100.0070.00317.32
8.1.90.0000.00817.49
8.1.80.0050.00217.30
8.1.70.0030.00317.46
8.1.60.0040.00417.58
8.1.50.0050.00317.48
8.1.40.0050.00317.50
8.1.30.0000.00817.67
8.1.20.0000.00817.58
8.1.10.0000.00717.65
8.1.00.0000.00917.46
8.0.300.0030.00518.77
8.0.290.0000.00717.01
8.0.280.0070.00018.46
8.0.270.0030.00317.33
8.0.260.0040.00416.91
8.0.250.0030.00316.97
8.0.240.0030.00717.10
8.0.230.0040.00417.07
8.0.220.0000.00717.01
8.0.210.0040.00416.89
8.0.200.0030.00316.99
8.0.190.0060.00316.96
8.0.180.0040.00416.94
8.0.170.0040.00416.90
8.0.160.0000.00716.95
8.0.150.0040.00416.86
8.0.140.0030.00516.96
8.0.130.0000.00613.43
8.0.120.0000.00816.99
8.0.110.0000.00816.81
8.0.100.0000.00716.81
8.0.90.0070.00016.96
8.0.80.0090.00717.02
8.0.70.0050.00316.88
8.0.60.0000.00817.02
8.0.50.0040.00416.96
8.0.30.0110.00817.28
8.0.20.0040.01617.40
8.0.10.0050.00217.13
8.0.00.0090.01016.88
7.4.330.0050.00015.02
7.4.320.0030.00316.61
7.4.300.0060.00016.51
7.4.290.0040.00416.53
7.4.280.0030.00316.56
7.4.270.0000.00616.66
7.4.260.0030.00316.59
7.4.250.0070.00016.44
7.4.240.0060.00216.48
7.4.230.0030.00316.42
7.4.220.0100.00716.52
7.4.210.0080.00616.59
7.4.200.0030.00316.38
7.4.190.0040.00416.71
7.4.160.0130.00316.67
7.4.150.0110.00817.40
7.4.140.0090.01117.86
7.4.130.0090.00916.62
7.4.120.0140.00616.55
7.4.110.0100.00716.58
7.4.100.0100.01016.52
7.4.90.0090.00916.41
7.4.80.0170.00316.67
7.4.70.0130.00316.51
7.4.60.0100.01316.50
7.4.50.0040.00416.56
7.4.40.0040.01222.77
7.4.30.0090.00916.75
7.4.00.0060.00615.07
7.3.330.0060.00013.36
7.3.320.0000.00613.13
7.3.310.0070.00016.38
7.3.300.0040.00416.31
7.3.290.0050.01016.36
7.3.280.0100.00616.37
7.3.270.0070.01417.40
7.3.260.0060.00916.38
7.3.250.0080.00916.44
7.3.240.0030.01416.46
7.3.230.0060.00916.39
7.3.210.0130.00916.46
7.3.200.0110.00719.39
7.3.190.0150.00616.38
7.3.180.0040.01116.53
7.3.170.0070.01016.47
7.3.160.0120.00616.52
7.3.120.0030.00915.02
7.2.330.0060.01116.73
7.2.320.0090.00916.75
7.2.310.0060.01216.77
7.2.300.0060.01016.75
7.2.290.0090.00616.67
7.2.00.0060.00919.53
7.1.100.0030.01018.23
7.1.70.0040.00417.17
7.1.60.0170.00719.24
7.1.50.0040.01116.93
7.1.00.0000.08022.45
7.0.200.0110.00616.75
7.0.140.0030.07321.95
7.0.100.0070.05319.93
7.0.90.0130.07719.95
7.0.80.0100.08019.97
7.0.70.0030.08019.89
7.0.60.0230.06720.00
7.0.50.0070.07020.25
7.0.40.0030.08720.04
7.0.30.0070.06020.00
7.0.20.0030.07020.11
7.0.10.0130.08020.14
7.0.00.0100.07720.10
5.6.280.0000.07721.02
5.6.250.0070.07720.76
5.6.240.0070.08720.54
5.6.230.0030.07320.56
5.6.220.0030.05720.50
5.6.210.0030.07320.53
5.6.200.0070.08321.06
5.6.190.0070.04020.94
5.6.180.0030.06720.89
5.6.170.0070.08020.94
5.6.160.0100.07721.02
5.6.150.0100.08321.12
5.6.140.0000.08021.03
5.6.130.0100.08721.04
5.6.120.0100.06321.04
5.6.110.0130.06720.92
5.6.100.0170.07721.00
5.6.90.0070.08020.91
5.6.80.0070.08020.41
5.6.70.0030.08320.46
5.6.60.0070.04720.49
5.6.50.0030.09020.48
5.6.40.0100.05720.48
5.6.30.0070.07020.32
5.6.20.0130.06720.36
5.6.10.0030.08320.28
5.6.00.0100.07720.35
5.5.380.0030.08720.36
5.5.370.0070.07720.43
5.5.360.0100.08720.49
5.5.350.0130.07720.44
5.5.340.0030.08720.80
5.5.330.0100.05020.86
5.5.320.0100.04720.84
5.5.310.0070.08020.92
5.5.300.0170.06020.89
5.5.290.0100.07320.89
5.5.280.0070.06720.73
5.5.270.0070.07720.88
5.5.260.0130.07320.93
5.5.250.0170.06020.74
5.5.240.0100.06720.19
5.5.230.0070.08320.16
5.5.220.0030.08720.30
5.5.210.0100.06720.26
5.5.200.0070.06020.25
5.5.190.0030.07320.15
5.5.180.0100.08020.13
5.5.160.0100.08020.20
5.5.150.0100.07320.11
5.5.140.0100.08020.13
5.5.130.0100.07720.24
5.5.120.0070.08020.28
5.5.110.0100.06020.18
5.5.100.0070.08020.16
5.5.90.0070.07320.12
5.5.80.0030.07020.05
5.5.70.0100.04320.05
5.5.60.0070.07020.07
5.5.50.0030.05020.15
5.5.40.0070.04320.15
5.5.30.0070.06020.06
5.5.20.0130.07720.06
5.5.10.0100.07320.04
5.5.00.0100.07020.04
5.4.450.0100.06719.38
5.4.440.0070.06719.44
5.4.430.0100.04319.55
5.4.420.0000.08019.36
5.4.410.0000.07719.14
5.4.400.0030.08319.18
5.4.390.0030.08019.16
5.4.380.0070.08319.04
5.4.370.0170.07019.16
5.4.360.0070.08019.15
5.4.350.0070.08019.13
5.4.340.0100.07019.05
5.4.320.0130.07019.04
5.4.310.0200.06719.04
5.4.300.0070.06318.95
5.4.290.0030.04319.03
5.4.280.0070.08019.04
5.4.270.0030.08019.03
5.4.260.0100.04719.23
5.4.250.0100.07319.17
5.4.240.0030.08019.08
5.4.230.0070.07319.11
5.4.220.0030.05318.84
5.4.210.0030.05319.19
5.4.200.0030.06319.15
5.4.190.0000.04319.23
5.4.180.0030.06019.04
5.4.170.0200.06719.11
5.4.160.0030.07019.02
5.4.150.0070.07719.11
5.4.140.0070.05016.43
5.4.130.0070.05316.44
5.4.120.0030.07716.19
5.4.110.0070.07316.44
5.4.100.0100.07016.55
5.4.90.0030.07316.52
5.4.80.0170.04316.38
5.4.70.0030.07316.48
5.4.60.0070.07016.36
5.4.50.0100.06716.30
5.4.40.0070.07016.46
5.4.30.0170.06316.47
5.4.20.0030.07716.41
5.4.10.0000.05716.43
5.4.00.0000.07315.58
5.3.290.0130.05714.68
5.3.280.0100.07014.59
5.3.270.0070.07714.61
5.3.260.0100.07314.56
5.3.250.0000.08014.43
5.3.240.0030.07714.43
5.3.230.0030.04314.51
5.3.220.0000.07314.50
5.3.210.0070.07314.49
5.3.200.0000.06314.58
5.3.190.0070.08014.55
5.3.180.0000.08314.56
5.3.170.0030.06714.52
5.3.160.0030.08314.52
5.3.150.0130.05014.53
5.3.140.0030.04314.38
5.3.130.0070.04014.54
5.3.120.0070.07714.41
5.3.110.0070.07314.52
5.3.100.0100.03314.02
5.3.90.0070.07713.88
5.3.80.0070.07314.01
5.3.70.0070.07313.93
5.3.60.0030.07013.76
5.3.50.0030.04013.89
5.3.40.0200.06313.80
5.3.30.0070.07013.87
5.3.20.0030.07313.68
5.3.10.0070.05313.64
5.3.00.0030.06313.60
5.2.170.0130.05012.27
5.2.160.0070.06012.27
5.2.150.0070.05312.27
5.2.140.0070.06312.27
5.2.130.0030.03712.27
5.2.120.0000.06712.27
5.2.110.0070.06312.27
5.2.100.0100.05712.27
5.2.90.0000.06312.27
5.2.80.0070.05712.27
5.2.70.0070.05712.27
5.2.60.0030.03312.27
5.2.50.0100.05712.27
5.2.40.0070.05712.27
5.2.30.0070.03312.27
5.2.20.0000.04312.27
5.2.10.0100.05012.27
5.2.00.0070.06312.27
5.1.60.0100.04712.27
5.1.50.0030.05312.27
5.1.40.0130.04312.27
5.1.30.0000.06012.27
5.1.20.0030.05712.27
5.1.10.0030.05712.27
5.1.00.0100.02312.27
5.0.50.0100.03012.27
5.0.40.0000.04712.27
5.0.30.0000.06712.27
5.0.20.0070.02312.27
5.0.10.0070.04012.27
5.0.00.0070.05712.27
4.4.90.0030.02012.27
4.4.80.0000.03712.27
4.4.70.0000.03712.27
4.4.60.0000.02712.27
4.4.50.0030.03712.27
4.4.40.0070.05012.27
4.4.30.0000.03012.27
4.4.20.0030.03712.27
4.4.10.0000.03712.27
4.4.00.0030.02712.27
4.3.110.0000.02712.27
4.3.100.0070.03312.27
4.3.90.0000.03712.27
4.3.80.0000.05712.27
4.3.70.0030.01312.27
4.3.60.0030.01312.27
4.3.50.0030.01312.27
4.3.40.0000.04312.27
4.3.30.0030.01312.27
4.3.20.0030.01312.27
4.3.10.0030.01312.27
4.3.00.0000.01712.27

preferences:
39.04 ms | 401 KiB | 5 Q