3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pipe(&$_) { return new class($_) { private $_; public function __construct(&$_) { $this->$_ = &$_; } public function __call(string $name, array $args) : self { $this->_ = $name(...$args); return $this; } }; } pipe($blah)->strtoupper('hello')->strrev($blah); echo $blah;

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.0080.00818.68
8.3.50.0070.01416.45
8.3.40.0040.01118.70
8.3.30.0060.00918.97
8.3.20.0040.00421.73
8.3.10.0080.00023.49
8.3.00.0030.00619.45
8.2.180.0150.00618.56
8.2.170.0030.01422.96
8.2.160.0140.00021.18
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00520.52
8.2.120.0080.00026.35
8.2.110.0050.00519.15
8.2.100.0040.00819.57
8.2.90.0050.00519.20
8.2.80.0060.00317.97
8.2.70.0000.00817.61
8.2.60.0000.00917.93
8.2.50.0040.00418.10
8.2.40.0060.00320.42
8.2.30.0080.00019.12
8.2.20.0000.00818.09
8.2.10.0040.00417.93
8.2.00.0040.00418.09
8.1.280.0140.00325.92
8.1.270.0050.00322.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00421.16
8.1.230.0090.00319.12
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00417.22
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00018.47
8.1.160.0000.00818.74
8.1.150.0000.00720.14
8.1.140.0040.00419.55
8.1.130.0040.00418.91
8.1.120.0000.00717.47
8.1.110.0050.00217.47
8.1.100.0040.00417.43
8.1.90.0000.00817.42
8.1.80.0000.00717.49
8.1.70.0000.00717.36
8.1.60.0050.00317.59
8.1.50.0000.00817.51
8.1.40.0040.00417.52
8.1.30.0030.00517.66
8.1.20.0000.00817.61
8.1.10.0000.00817.60
8.1.00.0040.00417.49
8.0.300.0030.00520.07
8.0.290.0070.00016.63
8.0.280.0040.00418.45
8.0.270.0040.00417.27
8.0.260.0030.00316.70
8.0.250.0050.00216.98
8.0.240.0100.00016.82
8.0.230.0030.00716.91
8.0.220.0000.00716.90
8.0.210.0000.00716.90
8.0.200.0030.00316.96
8.0.190.0050.00316.96
8.0.180.0050.00216.89
8.0.170.0070.00016.82
8.0.160.0030.00616.78
8.0.150.0060.00316.88
8.0.140.0000.00716.89
8.0.130.0000.00613.31
8.0.120.0040.00416.78
8.0.110.0000.00816.73
8.0.100.0070.00016.88
8.0.90.0040.00416.72
8.0.80.0110.00616.85
8.0.70.0050.00316.78
8.0.60.0070.00016.81
8.0.50.0040.00416.89
8.0.30.0120.00717.00
8.0.20.0090.01017.41
8.0.10.0000.00716.91
8.0.00.0060.01816.72
7.4.330.0020.00215.55
7.4.320.0030.00316.49
7.4.300.0030.00316.65
7.4.290.0070.00316.55
7.4.280.0050.00316.35
7.4.270.0000.00716.65
7.4.260.0080.00013.30
7.4.250.0070.00016.52
7.4.240.0030.00316.50
7.4.230.0030.00316.40
7.4.220.0150.01216.55
7.4.210.0090.00616.47
7.4.200.0000.00716.48
7.4.160.0150.00516.40
7.4.150.0130.00417.40
7.4.140.0060.01217.86
7.4.130.0130.00816.58
7.4.120.0040.01516.53
7.4.110.0240.00016.50
7.4.100.0090.00816.50
7.4.90.0140.00316.66
7.4.80.0120.00619.39
7.4.70.0100.00716.29
7.4.60.0080.00816.52
7.4.50.0120.00316.62
7.4.40.0150.00916.48
7.4.30.0130.00316.36
7.4.00.0070.00814.79
7.3.330.0030.00313.38
7.3.320.0030.00313.20
7.3.310.0030.00316.38
7.3.300.0070.00016.36
7.3.290.0070.00916.38
7.3.280.0080.01116.36
7.3.270.0070.01017.40
7.3.260.0090.00916.43
7.3.250.0070.01216.34
7.3.240.0080.00916.42
7.3.230.0060.01116.45
7.3.210.0060.00916.27
7.3.200.0060.01016.41
7.3.190.0110.00616.44
7.3.180.0120.00416.66
7.3.170.0060.01016.48
7.3.160.0120.01216.42
7.3.120.0080.00714.86
7.3.110.0080.00814.71
7.3.100.0020.01314.66
7.3.90.0050.00814.65
7.3.80.0050.00914.84
7.3.70.0060.00614.92
7.3.60.0070.00514.80
7.3.50.0060.00614.88
7.3.40.0080.00614.66
7.3.30.0040.00414.81
7.3.20.0000.01016.77
7.3.10.0070.00716.80
7.3.00.0020.01016.56
7.2.330.0060.01116.78
7.2.320.0120.00916.77
7.2.310.0070.01016.40
7.2.300.0070.01016.86
7.2.290.0060.00916.72
7.2.250.0060.01014.88
7.2.240.0070.00915.00
7.2.230.0060.00814.92
7.2.220.0030.01015.01
7.2.210.0040.01115.12
7.2.200.0080.00814.88
7.2.190.0020.01414.98
7.2.180.0070.00315.22
7.2.170.0130.00115.03
7.2.160.0040.00714.82
7.2.150.0000.01516.98
7.2.140.0090.00616.89
7.2.130.0040.01116.79
7.2.120.0000.00916.93
7.2.110.0030.00916.95
7.2.100.0000.00917.04
7.2.90.0060.00616.77
7.2.80.0040.01116.72
7.2.70.0040.01417.05
7.2.60.0080.01116.95
7.2.50.0060.00717.03
7.2.40.0000.01316.95
7.2.30.0040.01116.98
7.2.20.0000.01116.98
7.2.10.0030.01316.97
7.2.00.0020.01218.19
7.1.330.0070.00715.89
7.1.320.0030.00815.70
7.1.310.0060.00515.85
7.1.300.0060.00815.96
7.1.290.0070.00515.74
7.1.280.0090.00615.82
7.1.270.0050.00715.64
7.1.260.0060.00515.71
7.1.250.0080.00315.94
7.1.200.0060.00615.82
7.1.70.0060.00316.95
7.1.60.1030.01733.43
7.1.50.0770.01332.75
7.1.40.0270.00032.60
7.1.30.0730.00732.62
7.1.20.0700.01032.75
7.1.10.0200.01014.65
7.1.00.0800.00714.72
7.0.200.0770.00315.07
7.0.190.0870.01315.01
7.0.180.0070.01014.36
7.0.170.0630.01014.29
7.0.160.0030.01014.32
7.0.150.0030.01014.55
7.0.140.0770.01314.39
7.0.130.1470.00714.64
7.0.120.0670.00714.68
7.0.110.0630.00714.34
7.0.100.0670.00314.56
7.0.90.0600.00714.54
7.0.80.0630.01014.58
7.0.70.0600.00714.49
7.0.60.0500.00714.29
7.0.50.0770.01014.54
7.0.40.0530.00714.68
7.0.30.0530.00714.49
7.0.20.0530.01014.54
7.0.10.0700.00314.53
7.0.00.0530.01014.38

preferences:
61.23 ms | 401 KiB | 5 Q