3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait DataCollector { protected static $CollectionData = array(); static function setData( $data ) { self::$CollectionData[] = $data; var_dump( self::$CollectionData ); } private static function getCollectedData() { return self::$CollectionData; } } class 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.70.0200.00316.88
8.3.60.0140.00318.28
8.3.50.0040.01222.05
8.3.40.0080.00818.84
8.3.30.0110.00418.58
8.3.20.0040.00418.70
8.3.10.0000.00719.35
8.3.00.0050.00221.87
8.2.180.0110.00716.50
8.2.170.0200.00022.96
8.2.160.0120.00920.60
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00319.66
8.2.110.0090.00022.04
8.2.100.0060.00617.90
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00418.14
8.2.30.0070.00019.38
8.2.20.0000.00817.77
8.2.10.0040.00417.64
8.2.00.0000.00717.64
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00019.12
8.1.230.0080.00420.84
8.1.220.0040.00418.77
8.1.210.0000.00819.04
8.1.200.0040.00417.48
8.1.190.0070.00017.53
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0000.00718.78
8.1.150.0060.00318.66
8.1.140.0000.00717.54
8.1.130.0030.00317.80
8.1.120.0040.00417.48
8.1.110.0000.00717.43
8.1.100.0000.00817.51
8.1.90.0050.00317.36
8.1.80.0070.00017.48
8.1.70.0040.00417.45
8.1.60.0060.00317.64
8.1.50.0030.00517.40
8.1.40.0050.00317.41
8.1.30.0030.00617.58
8.1.20.0040.00417.67
8.1.10.0040.00417.49
8.1.00.0040.00417.55
8.0.300.0040.00319.86
8.0.290.0040.00417.18
8.0.280.0030.00318.45
8.0.270.0070.00017.27
8.0.260.0060.00016.74
8.0.250.0000.00717.06
8.0.240.0000.00816.95
8.0.230.0000.00716.94
8.0.220.0030.00316.88
8.0.210.0040.00416.91
8.0.200.0030.00316.99
8.0.190.0040.00417.02
8.0.180.0050.00216.95
8.0.170.0060.00316.82
8.0.160.0070.00017.02
8.0.150.0080.00016.84
8.0.140.0070.00016.83
8.0.130.0070.00013.25
8.0.120.0000.00716.88
8.0.110.0040.00416.95
8.0.100.0040.00416.93
8.0.90.0000.00716.82
8.0.80.0040.01116.91
8.0.70.0000.00716.89
8.0.60.0000.00716.80
8.0.50.0050.00316.87
8.0.30.0110.00817.11
8.0.20.0110.00817.40
8.0.10.0040.00416.90
8.0.00.0080.01016.68
7.4.330.0060.00014.66
7.4.320.0000.00616.54
7.4.300.0000.00716.54
7.4.290.0030.00316.46
7.4.280.0040.00416.54
7.4.270.0060.00316.61
7.4.260.0000.00513.30
7.4.250.0070.00016.61
7.4.240.0030.00316.63
7.4.230.0000.00716.71
7.4.220.0080.01116.47
7.4.210.0080.00816.64
7.4.200.0070.00016.64
7.4.190.0000.00716.59
7.4.160.0190.00516.41
7.4.150.0070.01317.40
7.4.140.0090.01117.86
7.4.130.0100.00716.59
7.4.120.0090.00916.57
7.4.110.0180.00316.50
7.4.100.0050.01216.42
7.4.90.0060.01216.54
7.4.80.0000.01719.39
7.4.70.0030.01716.50
7.4.60.0030.01416.56
7.4.50.0030.00616.61
7.4.40.0080.00522.52
7.4.30.0030.01616.72
7.4.00.0090.00614.82
7.3.330.0050.00013.09
7.3.320.0000.00513.27
7.3.310.0000.00816.29
7.3.300.0030.00316.19
7.3.290.0000.01416.21
7.3.280.0050.00916.28
7.3.270.0070.01117.40
7.3.260.0090.01118.24
7.3.250.0110.01016.38
7.3.240.0040.01416.56
7.3.230.0090.00916.54
7.3.210.0080.01116.55
7.3.200.0030.01319.39
7.3.190.0030.01916.47
7.3.180.0100.01316.24
7.3.170.0090.00916.32
7.3.160.0040.01116.18
7.3.120.0100.00715.09
7.2.330.0120.00616.78
7.2.320.0100.01316.48
7.2.310.0120.00616.77
7.2.300.0120.00816.75
7.2.290.0060.01216.84
7.2.00.0000.01419.05
7.1.200.0110.00315.79
7.1.100.0030.01018.00
7.1.70.0030.00316.84
7.1.60.0030.01017.21
7.1.50.0000.01216.93
7.1.40.0080.00816.29
7.1.30.0040.00816.71
7.1.20.0070.01116.74
7.1.10.0040.00416.77
7.1.00.0550.00715.20
7.0.200.0040.00416.63
7.0.190.0040.00716.68
7.0.180.0080.00016.23
7.0.170.0000.01116.35
7.0.160.0070.00216.18
7.0.150.0040.00416.16
7.0.140.0630.00315.20
7.0.130.0630.00715.20
7.0.120.0660.00915.20
7.0.110.0660.01015.20
7.0.100.0550.00615.20
7.0.90.0490.00315.20
7.0.80.0630.00315.20
7.0.70.0630.00315.20
7.0.60.0540.00715.20
7.0.50.0390.00315.20
7.0.40.0040.00815.20
7.0.30.0070.00515.20
7.0.20.0080.00615.20
7.0.10.0050.00815.20
7.0.00.0040.00815.20
5.6.300.0000.04620.82
5.6.290.0120.04020.79
5.6.280.0100.04220.98
5.6.270.0030.05220.80
5.6.260.0030.04521.08
5.6.250.0220.03420.98
5.6.240.0070.05121.05
5.6.230.0060.04120.86
5.6.220.0130.04720.74
5.6.210.0000.05620.89
5.6.200.0070.04520.94
5.6.190.0420.03620.79
5.6.180.0100.04820.86
5.6.170.0130.04020.78
5.6.160.0200.05920.98
5.6.150.0040.04920.78
5.6.140.0100.04420.93
5.6.130.0030.04820.72
5.6.120.0100.04220.77
5.6.110.0090.04120.77
5.6.100.0070.04320.83
5.6.90.0120.04620.86
5.6.80.0100.03720.39
5.6.70.0130.03420.29
5.6.60.0070.06120.06
5.6.50.0040.06020.27
5.6.40.0210.05220.30
5.6.30.0140.07920.25
5.6.20.0060.04220.13
5.6.10.0080.04920.13
5.6.00.0150.04620.13
5.5.380.0000.04717.53
5.5.370.0040.04117.54
5.5.360.0030.05017.54
5.5.350.0030.04617.61
5.5.340.0070.04718.09
5.5.330.0030.04118.10
5.5.320.0100.04118.00
5.5.310.0030.05418.06
5.5.300.0100.04318.02
5.5.290.0070.04318.11
5.5.280.0060.04218.11
5.5.270.0130.03818.07
5.5.260.0000.05118.14
5.5.250.0130.04517.67
5.5.240.0130.07117.50
5.5.230.0030.04417.46
5.5.220.0000.05717.50
5.5.210.0090.03617.38
5.5.200.0030.06417.40
5.5.190.0070.04417.46
5.5.180.0060.04417.34
5.5.160.0030.09317.39
5.5.150.0100.03617.21
5.5.140.0070.08517.44
5.5.130.0030.04617.11
5.5.120.0030.04317.34
5.5.110.0070.04217.35
5.5.100.0040.04317.37
5.5.90.0070.03717.11
5.5.80.0070.04017.29
5.5.70.0030.04117.28
5.5.60.0070.04417.34
5.5.50.0040.04317.33
5.5.40.0090.04017.10
5.5.30.0060.04016.98
5.5.20.0000.04417.27
5.5.10.0100.04217.30
5.5.00.0030.04117.36
5.4.450.0160.04519.23
5.4.440.0040.04419.43
5.4.430.0100.03919.32
5.4.420.0030.04219.21
5.4.410.0100.03919.43
5.4.400.0030.05019.07
5.4.390.0070.04719.06
5.4.380.0030.03919.04
5.4.370.0060.03818.89
5.4.360.0100.03619.23
5.4.350.0100.03719.10
5.4.340.0030.04719.16
5.4.320.0100.05119.06
5.4.310.0100.04618.95
5.4.300.0060.03818.98
5.4.290.0030.04019.08
5.4.280.0060.05519.14
5.4.270.0000.04519.07
5.4.260.0100.03318.97
5.4.250.0000.05519.23
5.4.240.0160.02819.05
5.4.230.0070.04019.10
5.4.220.0060.03919.21
5.4.210.0070.04019.14
5.4.200.0250.03219.19
5.4.190.0030.04019.19
5.4.180.0130.04219.20
5.4.170.0030.04319.07
5.4.160.0030.04918.96
5.4.150.0060.04718.96
5.4.140.0060.03816.68
5.4.130.0090.04016.63
5.4.120.0070.03716.50
5.4.110.0130.03616.79
5.4.100.0090.03116.54
5.4.90.0030.04416.75
5.4.80.0070.03416.62
5.4.70.0100.03316.68
5.4.60.0030.03716.47
5.4.50.0100.03316.45
5.4.40.0000.04016.44
5.4.30.0070.03416.67
5.4.20.0000.04116.60
5.4.10.0070.03616.44
5.4.00.0030.03615.90
5.3.290.0070.04615.20
5.3.280.0100.06315.20
5.3.270.0200.04015.20
5.3.260.0100.03615.20
5.3.250.0130.03215.20
5.3.240.0070.05215.20
5.3.230.0110.03215.20
5.3.220.0030.04415.20
5.3.210.0060.03915.20
5.3.200.0140.05815.20
5.3.190.0100.03615.20
5.3.180.0200.03015.20
5.3.170.0150.03215.20
5.3.160.0030.04215.20
5.3.150.0030.03815.20
5.3.140.0000.04515.20
5.3.130.0150.03015.20
5.3.120.0060.03815.20
5.3.110.0110.03215.20
5.3.100.0030.04115.20
5.3.90.0100.05215.20
5.3.80.0000.04515.20
5.3.70.0070.03815.20
5.3.60.0060.03815.20
5.3.50.0030.03815.20
5.3.40.0000.04215.20
5.3.30.0000.03915.20
5.3.20.0060.04215.20
5.3.10.0090.03415.20
5.3.00.0070.03315.20
5.2.170.0070.03115.20
5.2.160.0140.02115.20
5.2.150.0070.03715.20
5.2.140.0000.04015.20
5.2.130.0040.02915.20
5.2.120.0040.03215.20
5.2.110.0030.03015.20
5.2.100.0030.03115.20
5.2.90.0070.02915.20
5.2.80.0070.02715.20
5.2.70.0000.03715.20
5.2.60.0030.03415.20
5.2.50.0000.03415.20
5.2.40.0030.03215.20
5.2.30.0040.02915.20
5.2.20.0030.02815.20
5.2.10.0070.02715.20
5.2.00.0030.03315.20
5.1.60.0000.04315.20
5.1.50.0110.01815.20
5.1.40.0070.02415.20
5.1.30.0030.03815.20
5.1.20.0040.02915.20
5.1.10.0040.02615.20
5.1.00.0060.02815.20
5.0.50.0070.02115.20
5.0.40.0030.02315.20
5.0.30.0040.02915.20
5.0.20.0000.03315.20
5.0.10.0030.04415.20
5.0.00.0000.03415.20
4.4.90.0000.02615.20
4.4.80.0070.02015.20
4.4.70.0040.01515.20
4.4.60.0000.01915.20
4.4.50.0000.02015.20
4.4.40.0000.02715.20
4.4.30.0030.02815.20
4.4.20.0120.02715.20
4.4.10.0000.02515.20
4.4.00.0000.02915.20
4.3.110.0060.01415.20
4.3.100.0060.01715.20
4.3.90.0060.01115.20
4.3.80.0060.03115.20
4.3.70.0030.02115.20
4.3.60.0030.01715.20
4.3.50.0030.01915.20
4.3.40.0030.02415.20
4.3.30.0000.02215.20
4.3.20.0100.01015.20
4.3.10.0030.03015.20
4.3.00.0030.02415.20

preferences:
36.49 ms | 401 KiB | 5 Q