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 $_;

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.0110.00418.43
8.3.50.0130.00716.36
8.3.40.0070.00718.90
8.3.30.0070.00718.84
8.3.20.0040.00421.82
8.3.10.0080.00023.60
8.3.00.0040.00419.81
8.2.180.0110.00418.29
8.2.170.0110.00422.96
8.2.160.0070.00721.12
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00720.41
8.2.120.0080.00026.16
8.2.110.0110.00020.99
8.2.100.0090.00317.72
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0090.00018.05
8.2.50.0090.00018.10
8.2.40.0040.00420.55
8.2.30.0060.00319.36
8.2.20.0060.00318.06
8.2.10.0070.00018.06
8.2.00.0000.00817.93
8.1.280.0140.00325.92
8.1.270.0030.00622.15
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0030.00721.14
8.1.230.0110.00019.10
8.1.220.0000.00917.78
8.1.210.0090.00018.77
8.1.200.0070.00317.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0060.00318.35
8.1.160.0040.00418.78
8.1.150.0040.00420.14
8.1.140.0040.00419.55
8.1.130.0050.00218.70
8.1.120.0000.00717.31
8.1.110.0000.00717.45
8.1.100.0030.00317.42
8.1.90.0040.00417.39
8.1.80.0040.00417.43
8.1.70.0070.00017.46
8.1.60.0000.00717.52
8.1.50.0030.00617.50
8.1.40.0000.00817.41
8.1.30.0060.00317.65
8.1.20.0050.00217.56
8.1.10.0040.00417.56
8.1.00.0030.00517.50
8.0.300.0070.00020.06
8.0.290.0000.00716.75
8.0.280.0030.00518.43
8.0.270.0070.00017.25
8.0.260.0030.00316.86
8.0.250.0020.00517.08
8.0.240.0070.00316.78
8.0.230.0050.00317.08
8.0.220.0050.00216.85
8.0.210.0070.00017.00
8.0.200.0000.00616.97
8.0.190.0040.00417.07
8.0.180.0040.00416.99
8.0.170.0000.00716.88
8.0.160.0030.00716.98
8.0.150.0060.00317.02
8.0.140.0070.00016.91
8.0.130.0030.00313.35
8.0.120.0040.00416.98
8.0.110.0050.00316.97
8.0.100.0030.00316.89
8.0.90.0000.00816.78
8.0.80.0080.00916.88
8.0.70.0030.00616.95
8.0.60.0000.00717.02
8.0.50.0030.00316.75
8.0.30.0060.01317.08
8.0.20.0100.00817.40
8.0.10.0040.00417.10
8.0.00.0070.01716.80
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0030.00316.40
7.4.290.0030.00716.61
7.4.280.0090.00016.50
7.4.270.0030.00316.36
7.4.260.0000.00513.28
7.4.250.0070.00016.45
7.4.240.0000.00816.53
7.4.230.0070.00016.25
7.4.220.0100.01016.68
7.4.210.0120.00316.61
7.4.200.0070.00016.50
7.4.160.0110.00716.44
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0040.01416.61
7.4.120.0110.01216.54
7.4.110.0100.01016.44
7.4.100.0110.00816.50
7.4.90.0100.00716.45
7.4.80.0090.00919.39
7.4.70.0100.00716.51
7.4.60.0080.00816.52
7.4.50.0070.00716.44
7.4.40.0070.01616.64
7.4.30.0070.01116.58
7.4.10.0030.01514.71
7.4.00.0090.00814.92
7.3.330.0030.00313.21
7.3.320.0000.00513.29
7.3.310.0030.00316.47
7.3.300.0000.00716.43
7.3.290.0050.00916.45
7.3.280.0080.00916.41
7.3.270.0070.01117.40
7.3.260.0090.00816.57
7.3.250.0100.01416.43
7.3.240.0120.00716.39
7.3.230.0180.02416.45
7.3.210.0070.01016.70
7.3.200.0030.01316.44
7.3.190.0030.01216.43
7.3.180.0030.01316.42
7.3.170.0070.01016.41
7.3.160.0100.01016.42
7.3.130.0040.01414.82
7.3.120.0110.00714.96
7.3.110.0030.01314.69
7.3.100.0060.00614.71
7.3.90.0090.00914.68
7.3.80.0060.00614.84
7.3.70.0090.00314.96
7.3.60.0030.01014.85
7.3.50.0030.00914.96
7.3.40.0040.01115.04
7.3.30.0000.01314.87
7.3.20.0040.00816.76
7.3.10.0040.00816.68
7.3.00.0100.00516.74
7.2.330.0030.02116.52
7.2.320.0070.01116.70
7.2.310.0110.00616.69
7.2.300.0110.01116.65
7.2.290.0040.01216.54
7.2.260.0080.00615.16
7.2.250.0090.00915.25
7.2.240.0170.00015.02
7.2.230.0040.01115.18
7.2.220.0070.01015.14
7.2.210.0100.00314.90
7.2.200.0060.00915.16
7.2.190.0040.01115.05
7.2.180.0060.00614.84
7.2.170.0110.00315.03
7.2.160.0060.00915.20
7.2.150.0000.01016.97
7.2.140.0000.01416.96
7.2.130.0050.00616.82
7.2.120.0060.00516.81
7.2.110.0060.00516.83
7.2.100.0020.01016.85
7.2.90.0060.00716.93
7.2.80.0050.01016.80
7.2.70.0050.00517.04
7.2.60.0140.00716.86
7.2.50.0050.00816.91
7.2.40.0050.00617.00
7.2.30.0090.00616.83
7.2.20.0050.01116.78
7.2.10.0050.00717.02
7.2.00.0040.01017.69
7.1.330.0070.00715.54
7.1.320.0130.00315.74
7.1.310.0060.00615.81
7.1.300.0080.00015.96
7.1.290.0050.00315.95
7.1.280.0070.00415.86
7.1.270.0050.00315.92
7.1.260.0040.01115.96
7.1.250.0010.00615.80
7.1.240.0000.01315.87
7.1.230.0040.00815.79
7.1.220.0070.01015.83
7.1.210.0050.00515.73
7.1.200.0060.00615.54
7.1.190.0090.00315.68
7.1.180.0090.00615.75
7.1.170.0030.01015.86
7.1.160.0030.00715.69
7.1.150.0030.01015.89
7.1.140.0070.00715.93
7.1.130.0090.00315.85
7.1.120.0040.00915.97
7.1.110.0090.00915.57
7.1.100.0040.00415.62
7.1.90.0060.00615.95
7.1.80.0070.00615.63
7.1.70.0020.00916.37
7.1.60.0280.01324.56
7.1.50.0310.01424.37
7.1.40.0470.01224.12
7.1.30.0620.01024.23
7.1.20.0430.01024.27
7.1.10.0310.00815.31
7.1.00.0240.00915.18
7.0.330.0110.00015.44
7.0.320.0030.01215.12
7.0.310.0030.01015.37
7.0.300.0040.00415.36
7.0.290.0000.01215.52
7.0.280.0100.00315.53
7.0.270.0060.00315.37
7.0.260.0000.01015.63
7.0.250.0030.01015.61
7.0.240.0030.00615.41
7.0.230.0090.00315.34
7.0.220.0060.00615.50
7.0.210.0040.00415.59
7.0.200.0350.01114.91
7.0.190.0450.01115.14
7.0.180.0330.01014.97
7.0.170.0350.00514.79
7.0.160.0370.00715.02
7.0.150.0250.00815.03
7.0.140.0320.00814.83
7.0.130.0250.01015.04
7.0.120.0230.01215.12
7.0.110.0320.00714.95
7.0.100.0350.00714.87
7.0.90.0560.00614.97
7.0.80.0270.01015.01
7.0.70.0280.00814.99
7.0.60.0270.00814.84
7.0.50.0270.00514.90
7.0.40.0260.00514.01
7.0.30.0300.00614.12
7.0.20.0360.00813.85
7.0.10.0030.00813.97
7.0.00.0050.00713.97
5.6.400.0080.00314.16
5.6.390.0060.00914.16
5.6.380.0000.01514.09
5.6.370.0040.01113.96
5.6.360.0000.01014.13
5.6.350.0040.00813.96
5.6.340.0030.00814.24
5.6.330.0070.00414.38
5.6.320.0060.00614.13
5.6.310.0070.00714.11
5.6.300.0040.00414.18
5.6.290.0060.00613.93
5.6.280.0030.01014.14
5.6.270.0070.00414.10
5.6.260.0050.00514.08
5.6.250.0000.01113.93
5.6.240.0030.00914.08
5.6.230.0070.00714.30
5.6.220.0030.00613.94
5.6.210.0060.00614.16
5.6.200.0070.00714.15
5.6.190.0000.01414.00
5.6.180.0060.00913.98
5.6.170.0000.01514.10
5.6.160.0000.01014.11
5.6.150.0030.00914.03
5.6.140.0000.01413.90
5.6.130.0040.00414.21
5.6.120.0050.00514.35
5.6.110.0030.00914.09
5.6.100.0000.00814.18
5.6.90.0060.00313.74
5.6.80.0070.00314.12
5.6.70.0070.01013.94
5.6.60.0090.00613.82
5.6.50.0090.00614.02
5.6.40.0090.00613.99
5.6.30.0060.01213.84
5.6.20.0090.00914.05
5.6.10.0030.00813.90
5.6.00.0070.00314.28

preferences:
59.67 ms | 400 KiB | 5 Q