3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Amp\MultiProcess\PhpDispatcher, Amp\MultiProcess\CallResult, Amp\ReactorFactory; require dirname(__DIR__) . '/autoload.php'; require __DIR__ . '/support_files/async_mailer/MyAsyncMailer.php'; $reactor = (new ReactorFactory)->select(); $include = __DIR__ . '/support_files/async_mailer/StaticMailWorker.php'; $dispatcher = new PhpDispatcher($reactor, $include, $workerProcessesToSpawn = 8); $mailer = new MyAsyncMailer($dispatcher); $mailJobs = [ [$to ='test1@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test2@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test3@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test4@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test5@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test6@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test7@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]], [$to ='test8@test.com', $from='address@me.com', $subject='my test', $body='body', $headers=[]] ]; // Kick things off when the reactor starts $reactor->once(function() use ($mailer, $mailJobs) { $mailer->dispatch($mailJobs); }); // Release the hounds! This should always be the last thing that happens in the script. $reactor->run();

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.40.0000.01418.83
8.3.30.0090.00618.96
8.3.20.0060.00918.98
8.3.10.0040.00421.15
8.3.00.0060.00323.27
8.2.170.0110.00422.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.53
8.2.110.0100.00020.99
8.2.100.0070.00417.97
8.2.90.0080.00019.08
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0000.00817.89
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00419.40
8.2.20.0030.00617.84
8.2.10.0070.00017.86
8.2.00.0000.00717.74
8.1.270.0060.00323.99
8.1.260.0150.00026.35
8.1.250.0030.00728.09
8.1.240.0110.00023.91
8.1.230.0040.00822.67
8.1.220.0000.00818.77
8.1.210.0000.00819.00
8.1.200.0070.00317.38
8.1.190.0040.00417.63
8.1.180.0030.00518.10
8.1.170.0060.00318.66
8.1.160.0000.00818.90
8.1.150.0000.00718.52
8.1.140.0000.00717.46
8.1.130.0030.00317.75
8.1.120.0030.00317.48
8.1.110.0110.00017.43
8.1.100.0000.00717.53
8.1.90.0000.00717.49
8.1.80.0000.00817.43
8.1.70.0000.00717.35
8.1.60.0040.00417.48
8.1.50.0050.00217.54
8.1.40.0000.00817.57
8.1.30.0000.00817.56
8.1.20.0000.00817.74
8.1.10.0000.00717.66
8.1.00.0040.00417.51
8.0.300.0070.00020.02
8.0.290.0040.00417.43
8.0.280.0050.00318.48
8.0.270.0000.00717.29
8.0.260.0070.00017.07
8.0.250.0000.00817.19
8.0.240.0040.00417.16
8.0.230.0070.00017.16
8.0.220.0000.00716.99
8.0.210.0030.00317.08
8.0.200.0000.00717.06
8.0.190.0040.00417.15
8.0.180.0070.00017.16
8.0.170.0040.00417.11
8.0.160.0040.00417.00
8.0.150.0040.00416.99
8.0.140.0100.00016.99
8.0.130.0000.00713.52
8.0.120.0070.00315.20
8.0.110.0040.00615.26
8.0.100.0070.00315.26
8.0.90.0030.00715.33
8.0.80.0090.00815.26
8.0.70.0080.00215.24
8.0.60.0000.01015.21
8.0.50.0080.00315.23
8.0.30.0110.00715.93
8.0.20.0120.00616.11
8.0.10.0080.00215.37
8.0.00.0060.00915.69
7.4.330.0000.00713.43
7.4.320.0030.00716.54
7.4.300.0000.00616.59
7.4.290.0040.00416.59
7.4.280.0050.00316.56
7.4.270.0000.00716.67
7.4.260.0000.00613.35
7.4.250.0050.00414.92
7.4.240.0030.00714.95
7.4.230.0100.00015.03
7.4.220.0110.00614.99
7.4.210.0080.00715.98
7.4.200.0050.00515.01
7.4.190.0080.00215.12
7.4.180.0050.00213.49
7.4.160.0060.00515.00
7.4.150.0060.00615.38
7.4.140.0060.01016.36
7.4.130.0090.00715.54
7.4.120.0130.00415.49
7.4.110.0120.00514.86
7.4.100.0100.00714.91
7.4.90.0110.00614.83
7.4.80.0110.00516.29
7.4.70.0030.01214.81
7.4.60.0080.00714.90
7.4.50.0040.00514.90
7.4.40.0010.00717.80
7.4.30.0030.00814.87
7.4.20.0080.00013.07
7.4.10.0050.00614.20
7.4.00.0060.00714.52
7.3.330.0000.00513.19
7.3.320.0050.00013.52
7.3.310.0050.00314.90
7.3.300.0050.00314.81
7.3.290.0060.00714.94
7.3.280.0110.00515.68
7.3.270.0110.00115.39
7.3.260.0070.00716.57
7.3.250.0100.00615.48
7.3.240.0020.01014.90
7.3.230.0110.00214.78
7.3.220.0050.00013.37
7.3.210.0090.00314.84
7.3.200.0080.00416.35
7.3.190.0060.00514.94
7.3.180.0080.00514.89
7.3.170.0030.00814.82
7.3.160.0060.00514.90
7.3.150.0050.00013.17
7.3.140.0030.00313.12
7.3.130.0070.00313.96
7.3.120.0070.00614.39
7.3.110.0080.00413.96
7.3.100.0040.00714.01
7.3.90.0070.00314.17
7.3.80.0060.00614.02
7.3.70.0050.00714.00
7.3.60.0070.00514.06
7.3.50.0030.00714.11
7.3.40.0050.00213.94
7.3.30.0050.00314.04
7.3.20.0090.00315.84
7.3.10.0050.00315.70
7.3.00.0040.00515.87
7.2.340.0080.00413.25
7.2.330.0050.01015.01
7.2.320.0150.00314.87
7.2.310.0080.01114.91
7.2.300.0080.00714.91
7.2.290.0090.00714.92
7.2.280.0150.00013.39
7.2.270.0080.00413.32
7.2.260.0070.00914.09
7.2.250.0060.00914.13
7.2.240.0090.00714.25
7.2.230.0050.00914.03
7.2.220.0090.00414.10
7.2.210.0050.00913.97
7.2.200.0110.00414.18
7.2.190.0090.00313.95
7.2.180.0120.00114.11
7.2.170.0060.00614.20
7.2.160.0070.00513.93
7.2.150.0100.00315.97
7.2.140.0100.00516.07
7.2.130.0070.01016.13
7.2.120.0060.00815.96
7.2.110.0120.00416.00
7.2.100.0080.00616.07
7.2.90.0090.00515.93
7.2.80.0100.00416.01
7.2.70.0100.00415.92
7.2.60.0100.00415.89
7.2.50.0070.00616.10
7.2.40.0070.00515.97
7.2.30.0060.00715.93
7.2.20.0080.00616.03
7.2.10.0080.00515.95
7.2.00.0080.00416.11
7.1.330.0110.00314.88
7.1.320.0080.00715.05
7.1.310.0080.00814.96
7.1.300.0070.00514.92
7.1.290.0060.00614.85
7.1.280.0100.00314.95
7.1.270.0080.00414.86
7.1.260.0060.00814.89
7.1.250.0100.00515.01
7.1.240.0080.00414.92
7.1.230.0080.00515.01
7.1.220.0110.00214.96
7.1.210.0080.00314.91
7.1.200.0090.00515.11
7.1.190.0100.00414.97
7.1.180.0070.00614.99
7.1.170.0070.00414.76
7.1.160.0130.00014.96
7.1.150.0070.00514.91
7.1.140.0090.00214.96
7.1.130.0080.00715.03
7.1.120.0080.00414.78
7.1.110.0080.00314.92
7.1.100.0100.00316.09
7.1.90.0080.00515.00
7.1.80.0060.00514.91
7.1.70.0080.00315.76
7.1.60.0060.01016.50
7.1.50.0100.00915.65
7.1.40.0060.00714.98
7.1.30.0090.00314.82
7.1.20.0100.00214.88
7.1.10.0080.00514.96
7.1.00.0090.02617.36
7.0.330.0060.00914.55
7.0.320.0020.01114.79
7.0.310.0070.00514.77
7.0.300.0110.00214.84
7.0.290.0060.00414.54
7.0.280.0090.00414.71
7.0.270.0060.00714.82
7.0.260.0070.00414.66
7.0.250.0070.00414.80
7.0.240.0060.00714.87
7.0.230.0080.00514.79
7.0.220.0100.00314.79
7.0.210.0060.00514.84
7.0.200.0020.01015.25
7.0.190.0070.00414.78
7.0.180.0070.00514.65
7.0.170.0080.00614.87
7.0.160.0060.00614.65
7.0.150.0050.00814.72
7.0.140.0070.02917.11
7.0.130.0070.00514.77
7.0.120.0090.00414.89
7.0.110.0050.00714.72
7.0.100.0060.00414.66
7.0.90.0100.00314.77
7.0.80.0090.00514.46
7.0.70.0070.02817.02
7.0.60.0070.02917.15
7.0.50.0050.02017.20
7.0.40.0050.03315.91
7.0.30.0060.03016.00
7.0.20.0050.03315.79
7.0.10.0070.02915.83
7.0.00.0070.02615.85
5.6.400.0120.00213.58
5.6.390.0080.00713.53
5.6.380.0110.00213.40
5.6.370.0060.00713.52
5.6.360.0080.00613.24
5.6.350.0050.00513.45
5.6.340.0040.00613.62
5.6.330.0020.01213.31
5.6.320.0070.00713.61
5.6.310.0110.00213.43
5.6.300.0080.00313.47
5.6.290.0070.00313.41
5.6.280.0040.03016.12
5.6.270.0100.00213.55
5.6.260.0070.00513.44
5.6.250.0070.00713.45
5.6.240.0100.00313.39
5.6.230.0050.00713.42
5.6.220.0070.02915.78
5.6.210.0080.02915.93
5.6.200.0100.02815.90
5.6.190.0080.01615.97
5.6.180.0040.02015.96
5.6.170.0080.02016.13
5.6.160.0030.02115.90
5.6.150.0090.01516.06
5.6.140.0060.02415.93
5.6.130.0070.02915.86
5.6.120.0030.03116.06
5.6.110.0070.02615.97
5.6.100.0090.03115.92
5.6.90.0040.03215.90
5.6.80.0040.02515.68
5.6.70.0110.02415.83
5.6.60.0040.03215.72
5.6.50.0050.02315.55
5.6.40.0070.03215.74
5.6.30.0060.03115.77
5.6.20.0060.03115.72
5.6.10.0040.02915.76
5.6.00.0080.02015.66
5.5.380.0100.00313.41
5.5.370.0090.00313.46
5.5.360.0030.01815.77
5.5.350.0020.02215.72
5.5.340.0020.03515.84
5.5.330.0050.03215.91
5.5.320.0040.03215.81
5.5.310.0070.03115.81
5.5.300.0040.03315.73
5.5.290.0060.01815.87
5.5.280.0070.02315.72
5.5.270.0080.03115.82
5.5.260.0070.02515.87
5.5.250.0060.01715.93
5.5.240.0100.01615.55
5.5.230.0060.02215.63
5.5.220.0050.02115.68
5.5.210.0050.02915.67
5.5.200.0040.02715.63
5.5.190.0050.03215.50
5.5.180.0060.02415.74
5.5.170.0060.00713.24
5.5.160.0040.03115.65
5.5.150.0070.01915.67
5.5.140.0050.02815.48
5.5.130.0030.02515.54
5.5.120.0050.03415.54
5.5.110.0100.02715.64
5.5.100.0100.01915.46
5.5.90.0090.02415.51
5.5.80.0050.02615.59
5.5.70.0020.02715.68
5.5.60.0040.03115.66
5.5.50.0060.03115.58
5.5.40.0020.01915.63
5.5.30.0040.01815.49
5.5.20.0050.03215.50
5.5.10.0100.02615.47
5.5.00.0060.03115.55
5.4.450.0050.01714.37
5.4.440.0040.01814.42
5.4.430.0060.02414.47
5.4.420.0070.02614.30
5.4.410.0030.02814.39
5.4.400.0040.03214.31
5.4.390.0060.02214.18
5.4.380.0080.02414.26
5.4.370.0060.02714.34
5.4.360.0020.02714.30
5.4.350.0080.02414.32
5.4.340.0040.02314.21
5.4.330.0070.00511.95
5.4.320.0110.02714.33
5.4.310.0050.01714.18
5.4.300.0050.01814.31
5.4.290.0060.02614.23
5.4.280.0040.02114.27
5.4.270.0050.02914.23
5.4.260.0050.02214.28
5.4.250.0060.02914.24
5.4.240.0080.02714.24
5.4.230.0040.02814.17
5.4.220.0030.02114.22
5.4.210.0040.01614.20
5.4.200.0040.01814.25
5.4.190.0020.02214.29
5.4.180.0060.03014.15
5.4.170.0080.02214.25
5.4.160.0020.03014.16
5.4.150.0010.02914.22
5.4.140.0030.01613.33
5.4.130.0050.02613.43
5.4.120.0030.02913.38
5.4.110.0060.01813.39
5.4.100.0060.02513.34
5.4.90.0000.02813.42
5.4.80.0020.02713.31
5.4.70.0000.02113.42
5.4.60.0020.01513.48
5.4.50.0030.02013.24
5.4.40.0030.03213.39
5.4.30.0040.02213.35
5.4.20.0050.01613.38
5.4.10.0050.02713.37
5.4.00.0040.01913.16
5.3.290.0020.02112.82
5.3.280.0020.03012.85
5.3.270.0050.03012.70
5.3.260.0040.02812.81
5.3.250.0060.01812.77
5.3.240.0030.03212.82
5.3.230.0050.01812.84
5.3.220.0030.03012.79
5.3.210.0060.02712.77
5.3.200.0040.01512.85
5.3.190.0040.02712.78
5.3.180.0040.02312.87
5.3.170.0060.01712.80
5.3.160.0080.02212.80
5.3.150.0040.01512.85
5.3.140.0030.01612.89
5.3.130.0070.02612.75
5.3.120.0030.02912.89
5.3.110.0050.03012.81
5.3.100.0010.03112.70
5.3.90.0020.01912.62
5.3.80.0030.01712.64
5.3.70.0040.02212.66
5.3.60.0050.03012.56
5.3.50.0060.01912.58
5.3.40.0070.02412.64
5.3.30.0070.02612.62
5.3.20.0030.02112.43
5.3.10.0070.02212.47
5.3.00.0060.02512.43
5.2.170.0080.01311.92
5.2.160.0040.01611.92
5.2.150.0050.02012.03
5.2.140.0010.02811.88
5.2.130.0020.03112.01
5.2.120.0050.02211.92
5.2.110.0000.02312.01
5.2.100.0030.03211.91
5.2.90.0060.03011.93
5.2.80.0050.03211.88
5.2.70.0030.02311.89
5.2.60.0000.03111.91
5.2.50.0010.02111.90
5.2.40.0050.03012.01
5.2.30.0030.03311.88
5.2.20.0030.03311.91
5.2.10.0040.03111.77
5.2.00.0000.02311.86
5.1.60.0040.01311.39
5.1.50.0060.01111.44
5.1.40.0020.01811.60
5.1.30.0050.01511.60
5.1.20.0020.02011.46
5.1.10.0020.02111.54
5.1.00.0000.02911.49
5.0.50.0050.02211.35
5.0.40.0020.01211.35
5.0.30.0040.02311.35
5.0.20.0040.01011.35
5.0.10.0050.00811.35
5.0.00.0040.03011.35
4.4.90.0000.01011.35
4.4.80.0020.01811.35
4.4.70.0000.01711.35
4.4.60.0020.00811.35
4.4.50.0040.00711.35
4.4.40.0020.01211.35
4.4.30.0020.01311.35
4.4.20.0030.01411.35
4.4.10.0020.01211.35
4.4.00.0020.01211.35
4.3.110.0020.00811.35
4.3.100.0020.00811.35
4.3.90.0040.00711.35
4.3.80.0010.01611.35
4.3.70.0020.01711.35
4.3.60.0020.01211.35
4.3.50.0030.00811.35
4.3.40.0050.01311.35
4.3.30.0030.01811.35
4.3.20.0010.02011.35
4.3.10.0020.01511.35
4.3.00.0020.01811.35

preferences:
43.18 ms | 400 KiB | 5 Q