3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1;$i<1000;$i++){ $string = 'lorem_' . $i . '_ipsum'; // $string .= $i; // $string .= '_ipsum'; // $string = join('',$string); var_dump($string); unset($string); }

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.0100.01018.30
8.3.50.0120.00917.97
8.3.40.0130.00718.67
8.3.30.0130.00718.52
8.3.20.0030.00720.25
8.3.10.0070.00321.95
8.3.00.0100.00023.40
8.2.180.0240.00018.41
8.2.170.0140.01118.79
8.2.160.0130.00720.35
8.2.150.0070.00325.66
8.2.140.0120.00024.66
8.2.130.0080.00321.07
8.2.120.0000.01126.35
8.2.110.0070.00720.47
8.2.100.0110.00018.72
8.1.280.0180.00325.92
8.1.270.0050.00524.66
8.1.260.0050.00526.35
8.1.250.0110.00028.09
8.1.240.0040.01118.53
8.1.230.0170.01018.39
7.4.10.0120.01215.19
7.4.00.0070.01514.83
7.3.130.0100.01314.77
7.3.120.0160.00914.51
7.3.110.0110.00815.02
7.3.100.0150.00314.77
7.3.90.0070.01514.73
7.3.80.0110.01114.72
7.3.70.0070.01114.70
7.3.60.0070.01414.71
7.3.50.0150.00614.63
7.3.40.0060.01314.70
7.3.30.0120.00614.92
7.3.20.0000.02116.86
7.3.10.0060.01016.69
7.3.00.0130.00716.74
7.2.260.0150.00915.10
7.2.250.0120.01214.68
7.2.240.0100.01014.94
7.2.230.0130.00714.80
7.2.220.0220.00014.93
7.2.210.0080.00814.88
7.2.200.0070.01414.95
7.2.190.0100.01414.95
7.2.180.0130.00715.02
7.2.170.0130.00714.88
7.2.160.0130.00715.04
7.2.150.0070.01116.88
7.2.140.0120.01216.68
7.2.130.0130.00616.98
7.2.120.0130.01016.88
7.2.110.0070.01016.84
7.2.100.0150.00416.75
7.2.90.0060.00616.78
7.2.80.0210.00416.96
7.2.70.0080.00816.94
7.2.60.0200.00816.54
7.2.50.0130.00716.97
7.2.40.0000.01716.79
7.2.30.0000.01316.63
7.2.20.0130.01016.72
7.2.10.0100.00316.89
7.2.00.0060.01518.07
7.1.330.0000.01715.95
7.1.320.0150.00315.86
7.1.310.0120.00815.85
7.1.300.0070.01115.95
7.1.290.0030.01315.52
7.1.280.0060.01215.63
7.1.270.0070.01015.51
7.1.260.0180.00615.83
7.1.250.0130.00315.84
7.1.240.0090.00915.87
7.1.230.0060.00615.54
7.1.220.0060.00915.64
7.1.210.0100.01315.83
7.1.200.0090.00815.74
7.1.190.0100.01415.82
7.1.180.0070.00715.75
7.1.170.0070.01315.71
7.1.160.0100.00315.79
7.1.150.0060.00615.89
7.1.140.0030.01015.85
7.1.130.0090.01015.85
7.1.120.0120.00817.12
7.1.110.0060.01517.11
7.1.100.0080.01317.07
7.1.90.0160.00416.98
7.1.80.0070.01116.99
7.1.70.0050.01416.49
7.1.60.0100.01825.48
7.1.50.0130.01325.39
7.1.40.0150.01524.98
7.1.30.0180.00725.03
7.1.20.0110.01625.28
7.1.10.0100.01416.03
7.1.00.0080.01116.28
7.0.330.0070.01015.44
7.0.320.0120.00315.50
7.0.310.0040.01115.34
7.0.300.0070.01415.47
7.0.290.0070.00715.30
7.0.280.0070.01115.52
7.0.270.0140.00315.34
7.0.260.0070.01615.13
7.0.250.0090.00915.43
7.0.240.0060.01015.48
7.0.230.0100.00715.64
7.0.220.0120.00915.23
7.0.210.0070.01115.44
7.0.200.0070.01015.45
7.0.190.0060.00915.52
7.0.180.0040.00715.21
7.0.170.0030.01515.38
7.0.160.0000.02115.23
7.0.150.0070.01115.43
7.0.140.0070.00715.32
7.0.130.0120.00815.44
7.0.120.0110.00715.30
7.0.110.0060.01615.46
7.0.100.0100.01415.42
7.0.90.0140.00715.52
7.0.80.0130.00315.32
7.0.70.0070.01415.46
7.0.60.0000.01715.33
7.0.50.0060.01615.63
7.0.40.0160.00613.53
7.0.30.0060.01313.37
7.0.20.0090.01213.60
7.0.10.0110.00413.37
7.0.00.0070.01013.37
5.6.400.0070.01014.16
5.6.390.0030.01414.52
5.6.380.0120.00614.17
5.6.370.0110.01114.64
5.6.360.0150.00413.96
5.6.350.0030.02014.39
5.6.340.0070.01014.31
5.6.330.0130.00314.18
5.6.320.0100.00714.52
5.6.310.0070.01014.45
5.6.300.0040.01114.21
5.6.290.0040.01414.44
5.6.280.0120.00914.32
5.6.270.0070.01414.26
5.6.260.0060.00914.02
5.6.250.0090.01214.32
5.6.240.0100.00714.22
5.6.230.0110.00714.19
5.6.220.0150.00614.43
5.6.210.0120.00614.07
5.6.200.0030.02014.10
5.6.190.0100.01014.34
5.6.180.0100.01014.61
5.6.170.0060.01014.52
5.6.160.0190.00314.30
5.6.150.0080.00414.39
5.6.140.0060.01314.05
5.6.130.0110.00714.24
5.6.120.0220.00314.44
5.6.110.0130.01314.39
5.6.100.0110.01114.25
5.6.90.0030.01314.19
5.6.80.0000.01314.27
5.6.70.0090.00614.24
5.6.60.0000.01814.09
5.6.50.0150.00714.09
5.6.40.0120.00914.23
5.6.30.0100.01314.18
5.6.20.0130.00714.28
5.6.10.0030.01214.08
5.6.00.0120.00313.96

preferences:
44.62 ms | 400 KiB | 5 Q