3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Titi { public string $valiou; public function getValiou() { return (float) $this->valiou; } } $titi = new Titi(); $titi->valiou = '2.01'; echo (float) $var;

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.0120.00618.68
8.3.50.0130.00616.36
8.3.40.0070.00718.78
8.3.30.0030.01418.80
8.3.20.0080.00020.55
8.3.10.0040.00423.40
8.3.00.0080.00022.47
8.2.180.0040.01416.88
8.2.170.0040.01122.96
8.2.160.0060.01022.26
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00821.00
8.2.120.0040.00426.35
8.2.110.0090.00020.38
8.2.100.0040.00717.84
8.2.90.0030.00617.75
8.2.80.0080.00017.97
8.2.70.0040.00418.03
8.2.60.0040.00417.95
8.2.50.0060.00318.10
8.2.40.0000.00720.53
8.2.30.0040.00419.24
8.2.20.0000.00717.96
8.2.10.0040.00419.06
8.2.00.0020.00518.02
8.1.280.0150.00025.92
8.1.270.0050.00222.02
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0040.00423.86
8.1.230.0060.00620.99
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00518.55
8.1.160.0000.00718.74
8.1.150.0050.00318.81
8.1.140.0000.00720.18
8.1.130.0000.00720.19
8.1.120.0030.00417.42
8.1.110.0070.00017.30
8.1.100.0030.00617.36
8.1.90.0040.00417.30
8.1.80.0030.00317.36
8.1.70.0000.00817.47
8.1.60.0080.00017.56
8.1.50.0070.00317.53
8.1.40.0040.00417.53
8.1.30.0100.00317.65
8.1.20.0000.00817.56
8.1.10.0030.00517.57
8.1.00.0040.00417.53
8.0.300.0070.00021.55
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0030.00317.20
8.0.260.0000.00619.99
8.0.250.0080.00017.03
8.0.240.0000.00817.00
8.0.230.0030.00516.86
8.0.220.0000.00716.84
8.0.210.0070.00016.85
8.0.200.0030.00316.98
8.0.190.0040.00416.95
8.0.180.0070.00016.93
8.0.170.0040.00416.93
8.0.160.0000.00716.93
8.0.150.0020.00516.80
8.0.140.0040.00416.80
8.0.130.0030.00313.28
8.0.120.0040.00416.76
8.0.110.0000.00816.92
8.0.100.0000.00716.77
8.0.90.0080.00016.71
8.0.80.0000.01716.91
8.0.70.0040.00416.86
8.0.60.0040.00416.93
8.0.50.0020.00516.75
8.0.30.0060.00917.10
8.0.20.0130.01317.40
8.0.10.0000.00816.89
8.0.00.0130.00516.77
7.4.330.0020.00215.55
7.4.320.0050.00316.50
7.4.300.0000.00616.52
7.4.290.0070.00016.65
7.4.280.0050.00216.50
7.4.270.0030.00316.51
7.4.260.0040.00416.60
7.4.250.0000.00716.42
7.4.240.0040.00416.50
7.4.230.0050.00216.32
7.4.220.0040.00416.40
7.4.210.0110.00716.61
7.4.200.0070.00016.46
7.4.160.0090.00816.54
7.4.140.0070.01117.86
7.4.130.0070.01116.57
7.4.120.0120.00616.45
7.4.110.0100.01316.52
7.4.100.0120.00616.55
7.4.90.0060.01216.48
7.4.80.0090.00919.39
7.4.70.0040.01716.55
7.4.60.0090.00616.59
7.4.50.0030.01416.34
7.4.40.0080.00816.57
7.3.330.0050.00012.98
7.3.320.0000.00713.20
7.3.310.0050.00216.13
7.3.300.0070.00016.08
7.3.290.0080.00016.18
7.3.280.0120.00616.15
7.3.260.0150.00616.27
7.3.240.0120.00716.23
7.3.230.0100.01016.14
7.3.210.0060.01216.34
7.3.200.0030.01316.34
7.3.190.0100.00616.28
7.3.180.0150.00016.18
7.3.170.0100.00616.32
7.3.160.0090.00616.24
7.3.30.0090.00514.25
7.3.20.0090.00316.36
7.3.10.0040.01216.39
7.3.00.0100.00316.23
7.2.330.0030.01316.42
7.2.320.0090.01216.45
7.2.310.0030.01316.28
7.2.300.0090.00916.31
7.2.290.0100.00716.29
7.2.160.0070.00714.60
7.2.150.0030.01216.59
7.2.140.0110.01416.34
7.2.130.0070.01516.42
7.2.120.0100.00716.45
7.2.110.0090.00916.47
7.2.100.0080.00816.58
7.2.90.0140.01116.68
7.2.80.0060.01716.57
7.2.70.0120.00616.64
7.2.60.0080.00816.17
7.2.50.0150.00316.62
7.2.40.0120.00216.66
7.2.30.0090.00916.64
7.2.20.0000.01516.39
7.2.10.0120.00416.73
7.2.00.0070.00716.55
7.1.270.0080.00815.47
7.1.260.0070.00715.62
7.1.250.0030.00915.34

preferences:
34.86 ms | 400 KiB | 5 Q