3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Reverse { public $input; /** * * @param $data */ public function setInput($data) { $this->input = $data; return $this; } /** * *@return void */ public function get() { return $this->input; } } $data = "This is a test."; $output = (new Reverse) ->setInput($data) ->get(); var_export($output);

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.4.130.0090.01117.86
8.4.120.0110.00922.45
8.4.110.0130.00718.84
8.4.100.0100.01118.64
8.4.90.0110.00918.54
8.4.80.0050.00319.28
8.4.70.0100.00918.14
8.4.60.0120.00918.90
8.4.50.0120.00717.71
8.4.40.0190.00019.30
8.4.30.0060.01520.29
8.4.20.0130.00718.52
8.4.10.0100.01017.65
8.3.260.0080.01216.54
8.3.250.0050.00319.00
8.3.240.0150.00516.38
8.3.230.0100.01016.37
8.3.220.0140.00518.94
8.3.210.0070.00416.56
8.3.200.0060.00316.84
8.3.190.0120.00617.05
8.3.180.0050.00516.50
8.3.170.0050.00217.12
8.3.160.0030.01318.37
8.3.150.0050.00320.74
8.3.140.0040.00416.62
8.3.130.0040.00418.67
8.3.120.0130.00319.05
8.3.110.0130.00620.94
8.3.100.0080.00024.06
8.3.90.0070.00726.77
8.3.80.0040.00416.25
8.3.70.0130.00616.58
8.3.60.0140.00416.75
8.3.50.0070.00718.08
8.3.40.0090.00618.71
8.3.30.0070.01118.45
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0110.00920.54
8.2.280.0130.00518.32
8.2.270.0110.00717.30
8.2.260.0120.00618.65
8.2.250.0040.00418.47
8.2.240.0060.00918.96
8.2.230.0100.00022.58
8.2.220.0000.00837.54
8.2.210.0070.00726.77
8.2.200.0100.00016.38
8.2.190.0110.00716.63
8.2.180.0110.00325.92
8.2.170.0120.00918.80
8.2.160.0070.00722.96
8.2.150.0060.01225.66
8.2.140.0020.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00421.00
8.2.110.0070.00320.89
8.2.100.0110.00017.72
8.2.90.0030.00620.77
8.2.80.0090.00017.80
8.2.70.0050.00317.50
8.2.60.0050.00317.50
8.2.50.0000.00817.55
8.2.40.0040.00418.03
8.2.30.0040.00417.95
8.2.20.0000.00817.99
8.2.10.0070.00019.24
8.2.00.0030.00719.21
8.1.330.0070.01022.04
8.1.320.0140.00516.19
8.1.310.0140.00016.84
8.1.300.0100.01016.03
8.1.290.0050.00518.88
8.1.280.0000.01525.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.45
8.1.230.0040.00820.96
8.1.220.0000.00817.74
8.1.210.0000.01118.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00419.29
8.1.170.0000.00920.32
8.1.160.0070.00018.80
8.1.150.0030.00618.86
8.1.140.0040.00419.12
8.1.130.0030.00320.29
8.1.120.0030.00617.39
8.1.110.0030.00617.39
8.1.100.0040.00417.26
8.1.90.0020.00517.37
8.1.80.0000.00717.40
8.1.70.0030.00317.25
8.1.60.0000.00817.39
8.1.50.0030.00617.55
8.1.40.0000.00817.52
8.1.30.0040.00417.56
8.1.20.0030.00617.68
8.1.10.0040.00417.53
8.1.00.0000.00817.45
8.0.300.0060.00319.90
8.0.290.0060.00316.63
8.0.280.0030.00318.37
8.0.270.0070.00017.89
8.0.260.0000.00618.53
8.0.250.0000.00716.79
8.0.240.0050.00316.95
8.0.230.0030.00516.86
8.0.220.0040.00416.79
8.0.210.0040.00416.83
8.0.200.0030.00316.89
8.0.190.0050.00316.82
8.0.180.0040.00416.85
8.0.170.0000.00816.84
8.0.160.0050.00216.80
8.0.150.0080.00016.72
8.0.140.0000.00716.84
8.0.130.0030.00313.34
8.0.120.0000.00816.79
8.0.110.0070.00016.74
8.0.100.0040.00416.78
8.0.90.0000.00716.84
8.0.80.0070.00916.77
8.0.70.0130.01516.81
8.0.60.0210.00716.69
8.0.50.0210.00716.76
8.0.30.0180.01316.78
8.0.20.0210.01116.85
8.0.10.0220.00716.96
8.0.00.0250.01116.98
7.4.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0070.00016.42
7.4.290.0030.00316.46
7.4.280.0080.00016.50
7.4.270.0060.00016.61
7.4.260.0000.00513.14
7.4.250.0070.00016.42
7.4.240.0020.00516.50
7.4.230.0080.00016.60
7.4.220.0000.00716.56
7.4.210.0330.00416.50
7.4.200.0220.00816.57
7.4.190.0210.00816.61
7.4.180.0210.00916.67
7.4.160.0150.01716.60
7.4.150.0170.01416.50
7.4.140.0220.00516.54
7.4.130.0230.00516.46
7.4.120.0220.00416.40
7.4.110.0240.00916.41
7.4.100.0170.00916.54
7.4.90.0180.00916.38
7.4.80.0190.00816.49
7.4.70.0120.01516.39
7.4.60.0190.01316.50
7.4.50.0210.00716.31
7.4.40.0190.00916.40
7.4.30.0150.01416.41
7.4.20.0190.01316.44
7.4.10.0190.00516.43
7.4.00.0190.01016.45
7.3.330.0030.00316.21
7.3.320.0030.00313.26
7.3.310.0040.00416.24
7.3.300.0000.00716.23
7.3.290.0070.01416.22
7.3.280.0230.01016.20
7.3.270.0280.00716.18
7.3.260.0250.00516.22
7.3.250.0220.00916.21
7.3.240.0170.01316.22
7.3.230.0170.01216.24
7.3.220.0210.00916.11
7.3.210.0240.00416.13
7.3.200.0190.01316.20
7.3.190.0200.00816.18
7.3.180.0200.00516.17
7.3.170.0190.01316.13
7.3.160.0160.01416.17
7.3.150.0200.01016.19
7.3.140.0160.01216.10
7.3.130.0180.00916.20
7.3.120.0250.01316.14
7.3.110.0250.00216.03
7.3.100.0170.01116.12
7.3.90.0170.01316.44
7.3.80.0180.01316.21
7.3.70.0180.01316.28
7.3.60.0150.01316.36
7.3.50.0140.01516.37
7.3.40.0160.01016.30
7.3.30.0180.01216.33
7.3.20.0180.00916.38
7.3.10.0430.00516.30
7.3.00.0210.00716.26

preferences:
28.93 ms | 403 KiB | 5 Q