3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc { function abc() { $this->abc = 'Hello'; } function bcd() { $bcd = ' World'; return $this->abc . $bcd; } } $abc = new abc(); echo $abc->bcd(); $bcd = range( 1, 100 ); foreach( $bcd as $def ) { $efg = serialize( $bcd ) . $def; } echo file_get_contents( '/proc/cpuinfo' );

Abusive script

This script was stopped while abusing our resources

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)
7.4.10.0080.00814.72
7.4.00.0100.00815.20
7.3.130.0140.00314.90
7.3.120.0090.00614.84
7.3.110.0030.01614.92
7.3.100.0100.00714.94
7.3.90.0130.00714.93
7.3.80.0060.00615.11
7.3.70.0000.01614.99
7.3.60.0070.00714.98
7.3.50.0030.00914.80
7.3.40.0030.01014.88
7.3.30.0060.00614.93
7.3.20.0040.00716.74
7.3.10.0040.01116.57
7.3.00.0070.00716.55
7.2.260.0110.00815.26
7.2.250.0030.01615.04
7.2.240.0070.01115.07
7.2.230.0030.01314.77
7.2.220.0060.01315.34
7.2.210.0100.00714.87
7.2.200.0130.00014.98
7.2.190.0040.01115.19
7.2.180.0080.00414.95
7.2.170.0100.00715.22
7.2.160.0120.00314.89
7.2.150.0000.01416.96
7.2.140.0030.01017.07
7.2.130.0000.01317.21
7.2.120.0060.00917.06
7.2.110.0060.00317.07
7.2.100.0040.01516.91
7.2.90.0070.01117.04
7.2.80.0000.01616.89
7.2.70.0100.00316.88
7.2.60.0020.01317.03
7.2.50.0030.01217.04
7.2.40.0000.01117.00
7.2.30.0070.00717.13
7.2.20.0030.01317.04
7.2.10.0070.01116.76
7.2.00.0060.00918.37
7.1.330.0040.01115.95
7.1.320.0080.00815.87
7.1.310.0070.00715.88
7.1.300.0000.01015.88
7.1.290.0070.01015.54
7.1.280.0060.00915.63
7.1.270.0030.00615.55
7.1.260.0000.01215.85
7.1.250.0100.00315.68
7.1.240.0060.01215.92
7.1.230.0060.00615.75
7.1.220.0070.00715.54
7.1.210.0030.01315.78
7.1.200.0050.00815.80
7.1.190.0000.01515.75
7.1.180.0030.01015.78
7.1.170.0070.01015.59
7.1.160.0070.00715.71
7.1.150.0070.01015.56
7.1.140.0030.01315.86
7.1.130.0100.00715.88
7.1.120.0140.00315.85
7.1.110.0100.00715.84
7.1.100.0070.00516.89
7.1.90.0070.01016.03
7.1.80.0000.00915.87
7.1.70.0030.00816.50
7.1.60.0050.01517.53
7.1.50.0020.01716.27
7.1.40.0110.00315.93
7.1.30.0000.01415.86
7.1.20.0070.00715.87
7.1.10.0100.00315.50
7.1.00.0030.04119.22
7.0.330.0030.01215.34
7.0.320.0090.00015.45
7.0.310.0000.00915.63
7.0.300.0090.00615.42
7.0.290.0030.00915.64
7.0.280.0070.00715.39
7.0.270.0060.00615.54
7.0.260.0060.01015.46
7.0.250.0090.00915.31
7.0.240.0070.01015.64
7.0.230.0080.00815.27
7.0.220.0030.01015.58
7.0.210.0110.00415.53
7.0.200.0090.00516.18
7.0.190.0070.00715.40
7.0.180.0030.00915.64
7.0.170.0090.00015.62
7.0.160.0120.00315.48
7.0.150.0100.00715.33
7.0.140.0050.03818.66
7.0.130.0030.01215.43
7.0.120.0000.01315.36
7.0.110.0080.00315.58
7.0.100.0030.02617.74
7.0.90.0070.02417.72
7.0.80.0120.02117.76
7.0.70.0020.02517.91
7.0.60.0130.02717.75
7.0.50.0090.02817.82
7.0.40.0070.02516.77
7.0.30.0070.02716.83
7.0.20.0070.03816.75
7.0.10.0090.02516.87
7.0.00.0080.04816.80
5.6.400.0060.01214.60
5.6.390.0070.01314.66
5.6.380.0070.01014.41
5.6.370.0070.00714.64
5.6.360.0040.01414.08
5.6.350.0040.01214.54
5.6.340.0070.01414.66
5.6.330.0040.01114.44
5.6.320.0070.01314.62
5.6.310.0030.01314.27
5.6.300.0000.01214.51
5.6.290.0040.00714.40
5.6.280.0050.04417.66
5.6.270.0030.01214.55
5.6.260.0040.01414.53
5.6.250.0020.02917.56
5.6.240.0080.02217.53
5.6.230.0020.02717.56
5.6.220.0050.02817.57
5.6.210.0030.02717.55
5.6.200.0020.02917.78
5.6.190.0050.03017.61
5.6.180.0070.02517.78
5.6.170.0050.02617.89
5.6.160.0040.05217.84
5.6.150.0080.04517.71
5.6.140.0120.04217.66
5.6.130.0070.04517.75
5.6.120.0050.04717.63
5.6.110.0050.04317.70
5.6.100.0100.04517.83
5.6.90.0090.04717.64
5.6.80.0100.04217.52
5.6.70.0050.04717.51
5.6.60.0020.04617.38
5.6.50.0050.04017.46
5.6.40.0070.04717.41
5.6.30.0130.04017.30
5.6.20.0060.03817.44
5.6.10.0070.04617.31
5.6.00.0080.04517.33
5.5.380.0080.02317.24
5.5.370.0000.03917.34
5.5.360.0100.02517.29
5.5.350.0030.02817.49
5.5.340.0070.02517.54
5.5.330.0050.02817.38
5.5.320.0090.02617.61
5.5.310.0030.02717.60
5.5.300.0060.04017.54
5.5.290.0070.04717.70
5.5.280.0050.04417.64
5.5.270.0090.04517.51
5.5.260.0080.03717.67
5.5.250.0070.04417.52
5.5.240.0100.04217.09
5.5.230.0050.03517.27
5.5.220.0080.04517.31
5.5.210.0090.04017.40
5.5.200.0100.04117.21
5.5.190.0100.02517.33
5.5.180.0070.04517.28
5.5.170.0130.00313.92
5.5.160.0060.04317.21
5.5.150.0100.04517.30
5.5.140.0030.04817.33
5.5.130.0130.03617.32
5.5.120.0130.04217.18
5.5.110.0050.04717.32
5.5.100.0110.04117.04
5.5.90.0070.02617.28
5.5.80.0120.04017.23
5.5.70.0070.04617.27
5.5.60.0100.04017.23
5.5.50.0060.02917.26
5.5.40.0070.03517.10
5.5.30.0030.03817.27
5.5.20.0050.04317.23
5.5.10.0120.04217.29
5.5.00.0030.04817.08
5.4.450.0080.04215.56
5.4.440.0020.04415.51
5.4.430.0100.03515.56
5.4.420.0070.04615.53
5.4.410.0070.04315.45
5.4.400.0080.02715.38
5.4.390.0090.03815.33
5.4.380.0050.04415.41
5.4.370.0070.04115.42
5.4.360.0050.04315.33
5.4.350.0080.03415.42
5.4.340.0030.04615.33
5.4.330.0000.01311.61
5.4.320.0100.04015.37
5.4.310.0030.04215.33
5.4.300.0100.04015.35
5.4.290.0090.04015.33
5.4.280.0070.04215.23
5.4.270.0030.04915.33
5.4.260.0070.04415.49
5.4.250.0080.04315.38
5.4.240.0050.03915.51
5.4.230.0050.04015.50
5.4.220.0060.04315.35
5.4.210.0100.03915.47
5.4.200.0100.04215.45
5.4.190.0030.04215.46
5.4.180.0120.03715.45
5.4.170.0050.04315.39
5.4.160.0020.04215.35
5.4.150.0030.04515.46
5.4.140.0060.02614.14
5.4.130.0020.03014.15
5.4.120.0050.04314.10
5.4.110.0020.04714.17
5.4.100.0030.02814.17
5.4.90.0030.02914.11
5.4.80.0050.03814.17
5.4.70.0030.02914.17
5.4.60.0070.03514.17
5.4.50.0050.04014.18
5.4.40.0080.03614.14
5.4.30.0020.04014.09
5.4.20.0070.03814.17
5.4.10.0030.04214.06
5.4.00.0030.04213.88
5.3.290.0030.04613.21
5.3.280.0000.03313.22
5.3.270.0050.04213.23
5.3.260.0070.04213.30
5.3.250.0030.03613.26
5.3.240.0150.03613.22
5.3.230.0080.03813.27
5.3.220.0070.04213.18
5.3.210.0030.04413.21
5.3.200.0050.02813.24
5.3.190.0030.02813.19
5.3.180.0080.04013.25
5.3.170.0040.04913.19
5.3.160.0070.03613.19
5.3.150.0030.04313.27
5.3.140.0110.03113.21
5.3.130.0080.03913.19
5.3.120.0080.03713.28
5.3.110.0050.03013.22
5.3.100.0050.04312.98
5.3.90.0070.04012.91
5.3.80.0060.03712.95
5.3.70.0050.04512.89
5.3.60.0070.03812.94
5.3.50.0000.04612.96
5.3.40.0050.03712.95
5.3.30.0050.04312.90
5.3.20.0080.03012.84
5.3.10.0100.03612.71
5.3.00.0050.04412.81
5.2.170.0030.04712.34
5.2.160.0000.07012.34
5.2.150.0070.06312.34
5.2.140.0070.07012.34
5.2.130.0100.05712.34
5.2.120.0000.04312.34
5.2.110.0070.03012.34
5.2.100.0100.05312.34
5.2.90.0070.04012.34
5.2.80.0100.06012.34
5.2.70.0070.06312.34
5.2.60.0070.05712.34
5.2.50.0170.05312.34
5.2.40.0070.05712.34
5.2.30.0100.03312.34
5.2.20.0070.03012.34
5.2.10.0070.05312.34
5.2.00.0070.06012.34
5.1.60.0100.05312.34
5.1.50.0100.02712.34
5.1.40.0070.05312.34
5.1.30.0070.06312.34
5.1.20.0030.03712.34
5.1.10.0000.03012.34
5.1.00.0030.03712.34
5.0.50.0100.04312.34
5.0.40.0030.04712.34
5.0.30.0030.06712.34
5.0.20.0100.04012.34
5.0.10.0070.04712.34
5.0.00.0070.04012.34
4.4.90.0000.04012.34
4.4.80.0100.03012.34
4.4.70.0000.03712.34
4.4.60.0100.03012.34
4.4.50.0030.03712.34
4.4.40.0030.03012.34
4.4.30.0030.02012.34
4.4.20.0000.02012.34
4.4.10.0000.02012.34
4.4.00.0030.05712.34
4.3.110.0030.02712.34
4.3.100.0100.01312.34
4.3.90.0130.02712.34
4.3.80.0070.04312.34
4.3.70.0000.03712.34
4.3.60.0030.03712.34
4.3.50.0030.03712.34
4.3.40.0000.05712.34
4.3.30.0000.02012.34
4.3.20.0000.02012.34
4.3.10.0030.04312.34
4.3.00.0000.04012.34

preferences:
35.37 ms | 401 KiB | 5 Q